music_flac.c
changeset 726 298d69a81cc9
parent 725 bdf7b8d20566
child 755 7c9cfb3bf040
equal deleted inserted replaced
725:bdf7b8d20566 726:298d69a81cc9
   486         }
   486         }
   487         if (music->volume == MIX_MAX_VOLUME) {
   487         if (music->volume == MIX_MAX_VOLUME) {
   488             SDL_memcpy (snd, music->snd_available, mixable);
   488             SDL_memcpy (snd, music->snd_available, mixable);
   489         }
   489         }
   490         else {
   490         else {
   491             SDL_MixAudio (snd, music->snd_available, mixable, music->volume);
   491             SDL_MixAudioFormat(snd, music->snd_available, mixer.format, mixable, music->volume);
   492         }
   492         }
   493         music->len_available -= mixable;
   493         music->len_available -= mixable;
   494         music->snd_available += mixable;
   494         music->snd_available += mixable;
   495         len -= mixable;
   495         len -= mixable;
   496         snd += mixable;
   496         snd += mixable;