mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-03 18:12:14 +02:00
Improved handling of buffer playback
This commit is contained in:
parent
da712eb4df
commit
c53beed7f2
@ -50,13 +50,10 @@ Result audoutContainsAudioOutBuffer(AudioOutBuffer *Buffer, bool *ContainsBuffer
|
||||
|
||||
/**
|
||||
* @brief Submits an audio sample data buffer for playing.
|
||||
* @param event Handle obtained from audoutRegisterBufferEvent.
|
||||
* @param source AudioOutBuffer containing the source sample data to be played.
|
||||
* @param released AudioOutBuffer to receive the last played buffer.
|
||||
* @param duration Playback duration in ticks.
|
||||
* @return Whether a timeout occurred while waiting for data to be played.
|
||||
*/
|
||||
bool audoutPlayBuffer(Handle *event, AudioOutBuffer *source, AudioOutBuffer *released, u64 duration);
|
||||
void audoutPlayBuffer(AudioOutBuffer *source, AudioOutBuffer *released);
|
||||
|
||||
/// These return the state associated with the currently active audio output device.
|
||||
u32 audoutGetSampleRate(void);
|
||||
|
Loading…
Reference in New Issue
Block a user