music_ogg.c
changeset 726 298d69a81cc9
parent 725 bdf7b8d20566
child 777 92882ef2ab81
equal deleted inserted replaced
725:bdf7b8d20566 726:298d69a81cc9
   177             mixable = music->len_available;
   177             mixable = music->len_available;
   178         }
   178         }
   179         if ( music->volume == MIX_MAX_VOLUME ) {
   179         if ( music->volume == MIX_MAX_VOLUME ) {
   180             SDL_memcpy(snd, music->snd_available, mixable);
   180             SDL_memcpy(snd, music->snd_available, mixable);
   181         } else {
   181         } else {
   182             SDL_MixAudio(snd, music->snd_available, mixable,
   182             SDL_MixAudioFormat(snd, music->snd_available, mixer.format, mixable, music->volume);
   183                                           music->volume);
       
   184         }
   183         }
   185         music->len_available -= mixable;
   184         music->len_available -= mixable;
   186         music->snd_available += mixable;
   185         music->snd_available += mixable;
   187         len -= mixable;
   186         len -= mixable;
   188         snd += mixable;
   187         snd += mixable;