mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 02:22:15 +02:00
Return result from audoutPlayBuffer
This commit is contained in:
parent
5ff1f6d3bd
commit
402e698d10
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user