[iPAQ] Setting sound volume

From: Emmanuel Blot <emmanuel.blot.a.t.free.fr>
Date: Thu Jul 25 2002 - 07:10:15 EDT

Hi,

I'm using the following code to set up the output sound volume for the iPAQ:

sndVolume = (volume << 8) | volume;
rc = ioctl(mixerFd, SOUND_MIXER_WRITE_VOLUME, &sndVolume);

I read in the OSS specs that "volume" is supposed to be in range [0..100] but with the iPAQ, it
seems that the range is [0..255], indeed.

Did I miss something in the OSS specs, or is the driver not compliant with these specs ?

Thanks
Emmanuel
Received on Thu Jul 25 11:12:19 2002

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:44:55 EDT