src/audio/baudio/SDL_beaudio.cc
changeset 6352 a9bcd26e7105
parent 6138 4c64952a58fb
child 6856 245a50142ffb
equal deleted inserted replaced
6351:8f5535d05e34 6352:a9bcd26e7105
    45 static void
    45 static void
    46 FillSound(void *device, void *stream, size_t len,
    46 FillSound(void *device, void *stream, size_t len,
    47           const media_raw_audio_format & format)
    47           const media_raw_audio_format & format)
    48 {
    48 {
    49     SDL_AudioDevice *audio = (SDL_AudioDevice *) device;
    49     SDL_AudioDevice *audio = (SDL_AudioDevice *) device;
    50 
       
    51     /* Silence the buffer, since it's ours */
       
    52     SDL_memset(stream, audio->spec.silence, len);
       
    53 
    50 
    54     /* Only do soemthing if audio is enabled */
    51     /* Only do soemthing if audio is enabled */
    55     if (!audio->enabled)
    52     if (!audio->enabled)
    56         return;
    53         return;
    57 
    54