Rich Rattanni wrote:
> I am having issues with using volume control functions provided by
> FusionSound. In the program I have written, I tried to change the
> volume level by using the following code...
> .... Created FusionSound Device, Created music provider, created stream,
> etc...
> IFusionSoundPlayback *playback;
> fgStream->GetPlayback(fgStream, &playback);
> playback->SetVolume(playback, myVolumeLevel);
>
> When I set 'myVolumeLevel' to anything other than 1.0, the audio file
> sounds distorted. I guess I have two questions.
> 1) Is this the proper way (or one of many correct ways) to control the
> volume.
Yes, it's the proper way.
> 2) What could be causing the audio to sound distorted / clipped. It
> seems that any value other than 1.0 produces the exact same problem
> (there is no real discernable difference between the audio when
> myVolumeLevel != 1.0
It might be related to the fact that the vorbis provider outputs
unclampled floats (I have just committed a fix for this), or it might be
a bug in the mixing core (perhaps due to incorrect compilation by gcc).
So the questions are:
do you have the same behaviour with other providers (when playing a mp3,
for example)?
does it still happen when FusionSound is built with --disable-precision
and --disable-dithering?
>
> Below is my configuration script for my build of FusionSound
>
> --disable-ieee-floats \
> --enable-precision \
> --enable-linear-filter \
> --enable-dithering \
> --disable-examples \
> --enable-module \
> --disable-timidity \
> --disable-wave \
> --enable-vorbis \
> --disable-mad \
> --disable-cdda \
> --disable-playlist \
>
> I am trying to only play vorbis files.
>
> Thank you in advance,
> Rich
--
Regards,
Claudio Ciccani
[EMAIL PROTECTED]
http://directfb.org
http://sf.net/projects/php-directfb
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users