Function psp::sys::sceAudioChReserve
source · #[no_mangle]
pub unsafe extern "C" fn sceAudioChReserve(
channel: i32,
sample_count: i32,
format: AudioFormat
) -> i32
Expand description
Allocate and initialize a hardware output channel.
§Parameters
channel
: Use a value between 0-7 to reserve a specific channel. PassAUDIO_NEXT_CHANNEL
to get the first available channel.sample_count
: The number of samples that can be output on the channel per output call. It must be a value betweenAUDIO_SAMPLE_MIN
andAUDIO_SAMPLE_MAX
, and it must be aligned to 64 bytes. Useaudio_sample_align()
to align it.format
: The output format to use for the channel. One ofAudioFormat
.
§Return value
The channel number on success, or <0 on error.