mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
audout: Added audoutGetServiceSession and audoutGetServiceSession_AudioOut. Improved docs.
This commit is contained in:
parent
dcafcd0d94
commit
80cc0bb86a
@ -27,9 +27,18 @@ struct AudioOutBuffer
|
||||
u64 data_offset; ///< Offset of data inside the buffer. (Unused?)
|
||||
};
|
||||
|
||||
/// Initialize audout.
|
||||
Result audoutInitialize(void);
|
||||
|
||||
/// Exit audout.
|
||||
void audoutExit(void);
|
||||
|
||||
/// Gets the Service object for the actual audout service session.
|
||||
Service* audoutGetServiceSession(void);
|
||||
|
||||
/// Gets the Service object for IAudioOut.
|
||||
Service* audoutGetServiceSession_AudioOut(void);
|
||||
|
||||
Result audoutListAudioOuts(char *DeviceNames, s32 count, u32 *DeviceNamesCount);
|
||||
Result audoutOpenAudioOut(const char *DeviceNameIn, char *DeviceNameOut, u32 SampleRateIn, u32 ChannelCountIn, u32 *SampleRateOut, u32 *ChannelCountOut, PcmFormat *Format, AudioOutState *State);
|
||||
Result audoutGetAudioOutState(AudioOutState *State);
|
||||
|
@ -58,6 +58,14 @@ void _audoutCleanup(void) {
|
||||
serviceClose(&g_audoutSrv);
|
||||
}
|
||||
|
||||
Service* audoutGetServiceSession(void) {
|
||||
return &g_audoutSrv;
|
||||
}
|
||||
|
||||
Service* audoutGetServiceSession_AudioOut(void) {
|
||||
return &g_audoutIAudioOut;
|
||||
}
|
||||
|
||||
u32 audoutGetSampleRate(void) {
|
||||
return g_sampleRate;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user