Home
last modified time | relevance | path

Searched refs:work_buffer (Results 1 – 6 of 6) sorted by relevance

/AliOS-Things-master/components/SDL2/src/audio/emscripten/
A DSDL_emscriptenaudio.c68 callback(this->callbackspec.userdata, this->work_buffer, stream_len); in HandleAudioProcess()
72 callback(this->callbackspec.userdata, this->work_buffer, stream_len); in HandleAudioProcess()
73 if (SDL_AudioStreamPut(this->stream, this->work_buffer, stream_len) == -1) { in HandleAudioProcess()
80 got = SDL_AudioStreamGet(this->stream, this->work_buffer, this->spec.size); in HandleAudioProcess()
83 SDL_memset(this->work_buffer, this->spec.silence, this->spec.size); in HandleAudioProcess()
87 FeedAudioDevice(this, this->work_buffer, this->spec.size); in HandleAudioProcess()
121 }, this->work_buffer, (this->spec.size / sizeof (float)) / this->spec.channels); in HandleCaptureProcess()
127 callback(this->callbackspec.userdata, this->work_buffer, stream_len); in HandleCaptureProcess()
129 if (SDL_AudioStreamPut(this->stream, this->work_buffer, this->spec.size) == -1) { in HandleCaptureProcess()
134 const int got = SDL_AudioStreamGet(this->stream, this->work_buffer, stream_len); in HandleCaptureProcess()
[all …]
/AliOS-Things-master/components/SDL2/src/audio/nacl/
A DSDL_naclaudio.c73 callback(_this->callbackspec.userdata, _this->work_buffer, stream_len); in nacl_audio_callback()
74 if (SDL_AudioStreamPut(_this->stream, _this->work_buffer, stream_len) == -1) { in nacl_audio_callback()
/AliOS-Things-master/components/SDL2/src/audio/haiku/
A DSDL_haikuaudio.cc72 callback(audio->callbackspec.userdata, audio->work_buffer, stream_len); in FillSound()
73 if (SDL_AudioStreamPut(audio->stream, audio->work_buffer, stream_len) == -1) { in FillSound()
/AliOS-Things-master/components/SDL2/src/audio/
A DSDL_audio.c730 data = device->work_buffer; in SDL_RunAudio()
750 … got = SDL_AudioStreamGet(device->stream, data ? data : device->work_buffer, device->spec.size); in SDL_RunAudio()
764 } else if (data == device->work_buffer) { in SDL_RunAudio()
835 data = device->work_buffer; in SDL_CaptureAudio()
870 …const int got = SDL_AudioStreamGet(device->stream, device->work_buffer, device->callbackspec.size); in SDL_CaptureAudio()
873 … SDL_memset(device->work_buffer, device->spec.silence, device->callbackspec.size); in SDL_CaptureAudio()
879 callback(udata, device->work_buffer, device->callbackspec.size); in SDL_CaptureAudio()
1134 SDL_free(device->work_buffer); in close_audio_device()
1432 device->work_buffer = (Uint8 *) SDL_malloc(device->work_buffer_len); in open_audio_device()
1433 if (device->work_buffer == NULL) { in open_audio_device()
A DSDL_sysaudio.h153 Uint8 *work_buffer; member
/AliOS-Things-master/components/SDL2/src/audio/wasapi/
A DSDL_wasapi.c223 Uint8 *ptr = (Uint8 *) SDL_realloc(this->work_buffer, this->spec.size); in UpdateAudioStream()
227 this->work_buffer = ptr; in UpdateAudioStream()

Completed in 9 milliseconds