Claudio:
I first tried to adjust the volume while playing other audio types (MP3
specifically) and there was no noticable improvement in quality. As per
your recommendation, the latest CVS snapshot of FusionSound was pulled and
compiled with --disable-precision
and --disable-dithering, and the system exhibited the same problem.
Terrible audio quality (output sounds clipped and other strange artifacts)
when volume was adjusted to anything besides 1.0. What is strange is that
the volume value does not seem to matter. 0.5 or 60.0 both sound alike in
both level and quality. Do you have any other suggestions? Right now my
applicationmakes a call to amixer and adjusts the volume level. But I would
like to, if possible, contain all controls within my application.
Thanks you again,
Rich Rattanni
On 3/2/07, Claudio Ciccani <[EMAIL PROTECTED]> wrote:
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