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. Pass AUDIO_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 between AUDIO_SAMPLE_MIN and AUDIO_SAMPLE_MAX, and it must be aligned to 64 bytes. Use audio_sample_align() to align it.
  • format: The output format to use for the channel. One of AudioFormat.

§Return value

The channel number on success, or <0 on error.