SDL_mixer -- does FadeIn work?

no matter the arguments i pass into Mix_FadeInChannel, i
always get silent playback. i’ve checked the channel the
sound is supposed to be playing on, and it definitely is
busy and stops at the right time, i’m just not hearing
anything. i’ve switched the call to Mix_PlayChannel and
everything works great.

it seems i just cannot get the fadein to cooperate. does
anyone know if the fadein does/has worked for them? i’m
just not sure what to do with this.

i also noticed the same problem with the Music…
Mix_FadeInMusic didn’t give me any sounds, but Mix_PlayMusic
worked like a champ.

i’ve tried several types of arguments for the fadein time.
1000 to try to get it fading in. i’ve also tried 0 and -1
but the volume never seems to ramp up.

just thought i’d throw this one out there before i go
digging around into the code a bit deeper.

I’ve never tried the fadein code. Stephane, can you comment?> no matter the arguments i pass into Mix_FadeInChannel, i

always get silent playback. i’ve checked the channel the
sound is supposed to be playing on, and it definitely is
busy and stops at the right time, i’m just not hearing
anything. i’ve switched the call to Mix_PlayChannel and
everything works great.

it seems i just cannot get the fadein to cooperate. does
anyone know if the fadein does/has worked for them? i’m
just not sure what to do with this.

i also noticed the same problem with the Music…
Mix_FadeInMusic didn’t give me any sounds, but Mix_PlayMusic
worked like a champ.

i’ve tried several types of arguments for the fadein time.
1000 to try to get it fading in. i’ve also tried 0 and -1
but the volume never seems to ramp up.

just thought i’d throw this one out there before i go
digging around into the code a bit deeper.

In article ,
Sam Lantinga writes:

I’ve never tried the fadein code. Stephane, can you comment?

no matter the arguments i pass into Mix_FadeInChannel, i
always get silent playback. i’ve checked the channel the
sound is supposed to be playing on, and it definitely is
busy and stops at the right time, i’m just not hearing
anything. i’ve switched the call to Mix_PlayChannel and
everything works great.

it seems i just cannot get the fadein to cooperate. does
anyone know if the fadein does/has worked for them? i’m
just not sure what to do with this.

i also noticed the same problem with the Music…
Mix_FadeInMusic didn’t give me any sounds, but Mix_PlayMusic
worked like a champ.

i’ve tried several types of arguments for the fadein time.
1000 to try to get it fading in. i’ve also tried 0 and -1
but the volume never seems to ramp up.

just thought i’d throw this one out there before i go
digging around into the code a bit deeper.

Well I haven’t used that code in a while either but I just checked with the
sample programs and at least music fade-in works for me with the code in CVS.
The ‘playmus’ program provided with the SDL mixer actually fades the music in
for 2 seconds, so you can tell if it works.

It should also be working for samples, but I’ll double check this. The API
is simple enough…–
Stephane Peter
Programmer
Loki Software, Inc.

“Microsoft has done to computers what McDonald’s has done to gastronomy”