Return result from audoutPlayBuffer

This commit is contained in:
Mike H 2018-02-19 20:38:17 +00:00 committed by GitHub
parent 5ff1f6d3bd
commit 402e698d10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ AudioOutState audoutGetDeviceState(void) {
return g_deviceState; return g_deviceState;
} }
void audoutPlayBuffer(AudioOutBuffer *source, AudioOutBuffer *released) { Result audoutPlayBuffer(AudioOutBuffer *source, AudioOutBuffer *released) {
// Try to push the supplied buffer to the audio output device // Try to push the supplied buffer to the audio output device
Result do_append = audoutAppendAudioOutBuffer(source); Result do_append = audoutAppendAudioOutBuffer(source);
@ -103,6 +103,8 @@ void audoutPlayBuffer(AudioOutBuffer *source, AudioOutBuffer *released) {
do_release = audoutGetReleasedAudioOutBuffer(released, &released_count); do_release = audoutGetReleasedAudioOutBuffer(released, &released_count);
} }
} }
return do_append;
} }
Result audoutListAudioOuts(char *DeviceNames, u32 *DeviceNamesCount) { Result audoutListAudioOuts(char *DeviceNames, u32 *DeviceNamesCount) {