src/audio/haiku/SDL_haikuaudio.cc
changeset 10765 61312c8c59fe
parent 10764 f9bf759e9dd1
child 10768 73dfaab7e779
     1.1 --- a/src/audio/haiku/SDL_haikuaudio.cc	Fri Jan 06 01:02:58 2017 -0500
     1.2 +++ b/src/audio/haiku/SDL_haikuaudio.cc	Fri Jan 06 01:07:34 2017 -0500
     1.3 @@ -69,8 +69,8 @@
     1.4          const int stream_len = audio->callbackspec.size;
     1.5          const int ilen = (int) len;
     1.6          while (SDL_AudioStreamAvailable(audio->stream) < ilen) {
     1.7 -            callback(audio->spec.userdata, audio->fake_stream, stream_len);
     1.8 -            if (SDL_AudioStreamPut(audio->stream, audio->fake_stream, stream_len) == -1) {
     1.9 +            callback(audio->spec.userdata, audio->work_buffer, stream_len);
    1.10 +            if (SDL_AudioStreamPut(audio->stream, audio->work_buffer, stream_len) == -1) {
    1.11                  SDL_AudioStreamClear(audio->stream);
    1.12                  SDL_AtomicSet(&audio->enabled, 0);
    1.13                  break;