libnx
v4.8.0
|
Audio output service. More...
Go to the source code of this file.
Data Structures | |
struct | AudioOutBuffer |
Audio output buffer format. More... | |
Enumerations | |
enum | AudioOutState { AudioOutState_Started = 0 , AudioOutState_Stopped = 1 } |
Functions | |
Result | audoutInitialize (void) |
Initialize audout. | |
void | audoutExit (void) |
Exit audout. | |
Service * | audoutGetServiceSession (void) |
Gets the Service object for the actual audout service session. | |
Service * | audoutGetServiceSession_AudioOut (void) |
Gets the Service object for IAudioOut. | |
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) |
Result | audoutStartAudioOut (void) |
Result | audoutStopAudioOut (void) |
Result | audoutAppendAudioOutBuffer (AudioOutBuffer *Buffer) |
Submits an AudioOutBuffer for playing. | |
Result | audoutGetReleasedAudioOutBuffer (AudioOutBuffer **Buffer, u32 *ReleasedBuffersCount) |
Result | audoutContainsAudioOutBuffer (AudioOutBuffer *Buffer, bool *ContainsBuffer) |
Result | audoutGetAudioOutBufferCount (u32 *count) |
Only available with [4.0.0+]. | |
Result | audoutGetAudioOutPlayedSampleCount (u64 *count) |
Only available with [4.0.0+]. | |
Result | audoutFlushAudioOutBuffers (bool *flushed) |
Only available with [4.0.0+]. | |
Result | audoutSetAudioOutVolume (float volume) |
Only available with [6.0.0+]. | |
Result | audoutGetAudioOutVolume (float *volume) |
Only available with [6.0.0+]. | |
Result | audoutPlayBuffer (AudioOutBuffer *source, AudioOutBuffer **released) |
Submits an audio sample data buffer for playing and waits for it to finish playing. More... | |
Result | audoutWaitPlayFinish (AudioOutBuffer **released, u32 *released_count, u64 timeout) |
Waits for audio playback to finish. More... | |
u32 | audoutGetSampleRate (void) |
These return the state associated with the currently active audio output device. More... | |
u32 | audoutGetChannelCount (void) |
Supported channel count (2 channels). | |
PcmFormat | audoutGetPcmFormat (void) |
Supported PCM format (Int16). | |
AudioOutState | audoutGetDeviceState (void) |
Initial device state (stopped). | |
Audio output service.
u32 audoutGetSampleRate | ( | void | ) |
These return the state associated with the currently active audio output device.
Supported sample rate (48000Hz).
Result audoutPlayBuffer | ( | AudioOutBuffer * | source, |
AudioOutBuffer ** | released | ||
) |
Submits an audio sample data buffer for playing and waits for it to finish playing.
Uses audoutAppendAudioOutBuffer and audoutWaitPlayFinish internally.
source | AudioOutBuffer containing the source sample data to be played. |
released | AudioOutBuffer to receive the played buffer after being released. |
Result audoutWaitPlayFinish | ( | AudioOutBuffer ** | released, |
u32 * | released_count, | ||
u64 | timeout | ||
) |
Waits for audio playback to finish.
released | AudioOutBuffer to receive the first played buffer after being released. |
released_count | Pointer to receive the number of played buffers. |
timeout | Timeout value, use UINT64_MAX to wait until all finished. |