mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-03 18:12:14 +02:00
Add functions for state retrieval
This commit is contained in:
parent
d7a513f1c5
commit
d4c586bdb8
@ -23,9 +23,9 @@ typedef enum {
|
||||
AudioOutState_Stopped = 1,
|
||||
} AudioOutState;
|
||||
|
||||
/// audio output buffer format
|
||||
typedef struct AudioOutBuffer AudioOutBuffer;
|
||||
|
||||
/// audio output buffer format
|
||||
struct AudioOutBuffer
|
||||
{
|
||||
AudioOutBuffer* next; ///< Next buffer.
|
||||
@ -47,3 +47,9 @@ Result audoutAppendAudioOutBuffer(AudioOutBuffer *Buffer);
|
||||
Result audoutRegisterBufferEvent(Handle *BufferEvent);
|
||||
Result audoutGetReleasedAudioOutBuffer(AudioOutBuffer *Buffer, u32 *ReleasedBuffersCount);
|
||||
Result audoutContainsAudioOutBuffer(AudioOutBuffer *Buffer, bool *ContainsBuffer);
|
||||
|
||||
/// These return the state associated with the currently active audio output device.
|
||||
u32 audoutGetSampleRate(void);
|
||||
u32 audoutGetChannelCount(void);
|
||||
PcmFormat audoutGetPcmFormat(void);
|
||||
AudioOutState audoutGetDeviceState(void);
|
||||
|
Loading…
Reference in New Issue
Block a user