mirror of
https://github.com/encounter/SDL.git
synced 2025-12-15 16:16:16 +00:00
audio: rename fake_stream to work_buffer.
It's more than an alternative for when the OS can't provide a DMA buffer, now.
This commit is contained in:
@@ -70,8 +70,8 @@ static void nacl_audio_callback(void* stream, uint32_t buffer_size, PP_TimeDelta
|
||||
} else { /* streaming/converting */
|
||||
const int stream_len = _this->callbackspec.size;
|
||||
while (SDL_AudioStreamAvailable(_this->stream) < len) {
|
||||
callback(_this->spec.userdata, _this->fake_stream, stream_len);
|
||||
if (SDL_AudioStreamPut(_this->stream, _this->fake_stream, stream_len) == -1) {
|
||||
callback(_this->spec.userdata, _this->work_buffer, stream_len);
|
||||
if (SDL_AudioStreamPut(_this->stream, _this->work_buffer, stream_len) == -1) {
|
||||
SDL_AudioStreamClear(_this->stream);
|
||||
SDL_AtomicSet(&_this->enabled, 0);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user