10 #include "../audio/audio.h"
11 #include "../sf/service.h"
14 AudioOutState_Started = 0,
15 AudioOutState_Stopped = 1,
42 Result audoutListAudioOuts(
char *DeviceNames,
s32 count,
u32 *DeviceNamesCount);
43 Result audoutOpenAudioOut(
const char *DeviceNameIn,
char *DeviceNameOut,
u32 SampleRateIn,
u32 ChannelCountIn,
u32 *SampleRateOut,
u32 *ChannelCountOut,
PcmFormat *Format, AudioOutState *State);
44 Result audoutGetAudioOutState(AudioOutState *State);
45 Result audoutStartAudioOut(
void);
46 Result audoutStopAudioOut(
void);
PcmFormat
PcmFormat.
Definition: audio.h:12
void audoutExit(void)
Exit audout.
PcmFormat audoutGetPcmFormat(void)
Supported PCM format (Int16).
Result audoutAppendAudioOutBuffer(AudioOutBuffer *Buffer)
Submits an AudioOutBuffer for playing.
Result audoutSetAudioOutVolume(float volume)
Only available with [6.0.0+].
Service * audoutGetServiceSession_AudioOut(void)
Gets the Service object for IAudioOut.
u32 audoutGetSampleRate(void)
These return the state associated with the currently active audio output device.
Result audoutWaitPlayFinish(AudioOutBuffer **released, u32 *released_count, u64 timeout)
Waits for audio playback to finish.
Result audoutPlayBuffer(AudioOutBuffer *source, AudioOutBuffer **released)
Submits an audio sample data buffer for playing and waits for it to finish playing.
Result audoutInitialize(void)
Initialize audout.
u32 audoutGetChannelCount(void)
Supported channel count (2 channels).
Result audoutGetAudioOutPlayedSampleCount(u64 *count)
Only available with [4.0.0+].
Result audoutGetAudioOutBufferCount(u32 *count)
Only available with [4.0.0+].
Service * audoutGetServiceSession(void)
Gets the Service object for the actual audout service session.
Result audoutGetAudioOutVolume(float *volume)
Only available with [6.0.0+].
Result audoutFlushAudioOutBuffers(bool *flushed)
Only available with [4.0.0+].
AudioOutState audoutGetDeviceState(void)
Initial device state (stopped).
Audio output buffer format.
Definition: audout.h:22
u64 buffer_size
Sample buffer size (aligned to 0x1000 bytes).
Definition: audout.h:25
u64 data_offset
Offset of data inside the buffer. (Unused?)
Definition: audout.h:27
AudioOutBuffer * next
Next buffer. (Unused)
Definition: audout.h:23
u64 data_size
Size of data inside the buffer.
Definition: audout.h:26
void * buffer
Sample buffer (aligned to 0x1000 bytes).
Definition: audout.h:24
Service object structure.
Definition: service.h:14
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
u32 Result
Function error code result type.
Definition: types.h:44
int32_t s32
32-bit signed integer.
Definition: types.h:27
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21