10 #include "../audio/audio.h"
11 #include "../sf/service.h"
14 AudioInState_Started = 0,
15 AudioInState_Stopped = 1,
42 Result audinListAudioIns(
char *DeviceNames,
s32 count,
u32 *DeviceNamesCount);
43 Result audinOpenAudioIn(
const char *DeviceNameIn,
char *DeviceNameOut,
u32 SampleRateIn,
u32 ChannelCountIn,
u32 *SampleRateOut,
u32 *ChannelCountOut,
PcmFormat *Format, AudioInState *State);
44 Result audinGetAudioInState(AudioInState *State);
45 Result audinStartAudioIn(
void);
46 Result audinStopAudioIn(
void);
Result audinInitialize(void)
Initialize audin.
u32 audinGetSampleRate(void)
These return the state associated with the currently active audio input device.
Service * audinGetServiceSession_AudioIn(void)
Gets the Service object for IAudioIn.
Result audinWaitCaptureFinish(AudioInBuffer **released, u32 *released_count, u64 timeout)
Waits for audio capture to finish.
Result audinAppendAudioInBuffer(AudioInBuffer *Buffer)
Submits an AudioInBuffer for capturing.
void audinExit(void)
Exit audin.
Result audinCaptureBuffer(AudioInBuffer *source, AudioInBuffer **released)
Submits an audio sample data buffer for capturing and waits for it to finish capturing.
PcmFormat audinGetPcmFormat(void)
Supported PCM format (Int16).
u32 audinGetChannelCount(void)
Supported channel count (2 channels).
AudioInState audinGetDeviceState(void)
Initial device state (stopped).
Service * audinGetServiceSession(void)
Gets the Service object for the actual audin service session.
PcmFormat
PcmFormat.
Definition: audio.h:12
Audio input buffer format.
Definition: audin.h:22
AudioInBuffer * next
Next buffer. (Unused)
Definition: audin.h:23
u64 data_size
Size of data inside the buffer.
Definition: audin.h:26
u64 buffer_size
Sample buffer size (aligned to 0x1000 bytes).
Definition: audin.h:25
u64 data_offset
Offset of data inside the buffer. (Unused?)
Definition: audin.h:27
void * buffer
Sample buffer (aligned to 0x1000 bytes).
Definition: audin.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