| | |
| | | #if SDL_AUDIO_DRIVER_JACK |
| | | &JACK_bootstrap, |
| | | #endif |
| | | #if SDL_AUDIO_DRIVER_OS2 |
| | | &OS2AUDIO_bootstrap, |
| | | #endif |
| | | #if SDL_AUDIO_DRIVER_DISK |
| | | &DISKAUDIO_bootstrap, |
| | | #endif |
| | |
| | | |
| | | if (len > 0) { /* fill any remaining space in the stream with silence. */ |
| | | SDL_assert(SDL_CountDataQueue(device->buffer_queue) == 0); |
| | | SDL_memset(stream, device->spec.silence, len); |
| | | SDL_memset(stream, device->callbackspec.silence, len); |
| | | } |
| | | } |
| | | |
| | |
| | | /* !!! FIXME: this should be LockDevice. */ |
| | | SDL_LockMutex(device->mixer_lock); |
| | | if (SDL_AtomicGet(&device->paused)) { |
| | | SDL_memset(data, device->spec.silence, data_len); |
| | | SDL_memset(data, device->callbackspec.silence, data_len); |
| | | } else { |
| | | callback(udata, data, data_len); |
| | | } |