by the ezxsound.h , we can control audio device in the Ezx way. hope useful .
ZAudioNormalDev * zad = new ZAudioNormalDev(NORMAL_DEVICE, 44100, 2, 2, AUDIO_HARDWARE_DEFAULT, -1);
zad->write((short *)(&buf[0]), len);
delete zad;
the volume method in ZAudioNormalDev doesn't take effect.
control the volume like this:
SOUNDM_Audio_SystemCommand * zac = new SOUNDM_Audio_SystemCommand();
zac->SetOutputVolume(10);
delete zac;
note:you'd better backup current volume before you change it, and restore it when your application exit.
it sames the mediaplayer does not set system volume , soft volume control internal ? i don't known. but the fmradio use this to change volume, it is not a same audio device.