JoJo_ReloadeD
Still Fresh
- Joined
- Nov 18, 2007
- Messages
- 19
I'm stuck with this code, there's no way of get a higher volume, still very low when volume = 100
Any ideas ?
Code:
unsigned long soundDev = open("/dev/mixer", O_RDWR);
if(soundDev)
{
int vol = ((volume << 8) | volume);
//ioctl(soundDev, SOUND_MIXER_WRITE_PCM, &vol);
ioctl(soundDev, MIXER_WRITE(SOUND_MIXER_VOLUME), &vol);
ioctl(soundDev, MIXER_WRITE(SOUND_MIXER_PCM), &vol);
ioctl(soundDev, MIXER_WRITE(SOUND_MIXER_OGAIN), &vol);
close(soundDev);
}
Any ideas ?