[SDL] SDL_mixer's Mix_VolumeMusic didn't work

Peter Mulholland darkmatter at freeuk.com
Thu Nov 9 03:50:30 PST 2006


Hello benang,

Thursday, November 9, 2006, 1:02:44 AM, you wrote:

> Hi, actually this mail has been sent a few days ago. But seeing that the
> mailing list had a trouble befor, I posted it again.

> Currently I have a situation with SDL_mixer. I tried to reduce the
> volume of the music. So I tried to set the volume with :
> "Mix_VolumeMusic(20)". But it didn't work. The music was still playing at
> full volume. I tried again this time with: "Mix_VolumeMusic(0)" (to
> disable the music). And it's still playing at full volume. I tried to
> "cout"-ed the current volume and it showed the right volume (20 in the
> first attempt and 0 in the second attempt). Is this a hardware
> compatibility issue? Cause when I tried to run it in another machine, the
> volume didn't have any problem at all. How do I solve this problem?

You don't mention on what platform this is. You also don't mention
what kind of music you're trying to play.

Under Windows, I don't get this problem with WAV, MP3 or Vorbis music.

-- 
Best regards,
 Peter                            mailto:darkmatter at freeuk.com





More information about the SDL mailing list