This commit is contained in:
Mike H 2018-02-19 20:28:36 +00:00 committed by GitHub
commit 8fd6569d94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -52,7 +52,7 @@ Result audoutContainsAudioOutBuffer(AudioOutBuffer *Buffer, bool *ContainsBuffer
* @param source AudioOutBuffer containing the source sample data to be played. * @param source AudioOutBuffer containing the source sample data to be played.
* @param released AudioOutBuffer to receive the last played buffer. * @param released AudioOutBuffer to receive the last played buffer.
*/ */
void audoutPlayBuffer(AudioOutBuffer *source, AudioOutBuffer *released); Result audoutPlayBuffer(AudioOutBuffer *source, AudioOutBuffer *released);
/// These return the state associated with the currently active audio output device. /// These return the state associated with the currently active audio output device.
u32 audoutGetSampleRate(void); ///< Supported sample rate (48000Hz). u32 audoutGetSampleRate(void); ///< Supported sample rate (48000Hz).

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) {