mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 02:22:15 +02:00
Merge 5e26c486fa
into 9f8a33ba11
This commit is contained in:
commit
8fd6569d94
@ -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).
|
||||||
|
@ -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