29#define PSP_AUDIO_VOLUME_MAX 0x8000
32#define PSP_AUDIO_CHANNEL_MAX 8
35#define PSP_AUDIO_NEXT_CHANNEL (-1)
38#define SCE_AUDIO_ERROR_NOT_INITIALIZED (0x80260001)
39#define SCE_AUDIO_ERROR_OUTPUT_BUSY (0x80260002)
40#define SCE_AUDIO_ERROR_INVALID_CH (0x80260003)
41#define SCE_AUDIO_ERROR_PRIV_REQUIRED (0x80260004)
42#define SCE_AUDIO_ERROR_NOT_FOUND (0x80260005)
43#define SCE_AUDIO_ERROR_INVALID_SIZE (0x80260006)
44#define SCE_AUDIO_ERROR_INVALID_FORMAT (0x80260007)
45#define SCE_AUDIO_ERROR_NOT_RESERVED (0x80260008)
46#define SCE_AUDIO_ERROR_NOT_OUTPUT (0x80260009)
47#define SCE_AUDIO_ERROR_INVALID_FREQUENCY (0x8026000A)
48#define SCE_AUDIO_ERROR_INVALID_VOLUME (0x8026000B)
49#define SCE_AUDIO_ERROR_INPUT_BUSY (0x80260010)
76#define PSP_AUDIO_SAMPLE_MIN 64
79#define PSP_AUDIO_SAMPLE_MAX 65472
82#define PSP_AUDIO_SAMPLE_ALIGN(s) (((s) + 63) & ~63)
int sceAudioWaitInputEnd(void)
Wait for non-blocking audio input to complete.
int sceAudioChangeChannelVolume(int channel, int leftvol, int rightvol)
Change the volume of a channel.
int sceAudioOutputPannedBlocking(int channel, int leftvol, int rightvol, void *buf)
Output panned audio of the specified channel (blocking)
int sceAudioInputBlocking(int samplecount, int freq, void *buf)
Perform audio input (blocking)
PspAudioFormats
Definition pspaudio.h:52
@ PSP_AUDIO_FORMAT_STEREO
Channel is set to stereo output.
Definition pspaudio.h:54
@ PSP_AUDIO_FORMAT_MONO
Channel is set to mono output.
Definition pspaudio.h:56
int sceAudioOutput2Reserve(int samplecount)
Reserve the audio output and set the output sample count.
int sceAudioOutput2OutputBlocking(int vol, void *buf)
Output audio (blocking)
int sceAudioPollInputEnd(void)
Poll for non-blocking audio input status.
int sceAudioChRelease(int channel)
Release a hardware output channel.
int sceAudioSRCOutputBlocking(int vol, void *buf)
Output audio.
int sceAudioOutput2Release(void)
Release the audio output.
int sceAudioGetInputLength(void)
Get the number of samples that were acquired.
int sceAudioOutput(int channel, int vol, void *buf)
Output audio of the specified channel.
int sceAudioInputInitEx(pspAudioInputParams *params)
Init audio input (with extra arguments)
int sceAudioInput(int samplecount, int freq, void *buf)
Perform audio input.
int sceAudioChReserve(int channel, int samplecount, int format)
Allocate and initialize a hardware output channel.
int sceAudioInputInit(int unknown1, int gain, int unknown2)
Init audio input.
int sceAudioChangeChannelConfig(int channel, int format)
Change the format of a channel.
int sceAudioSRCChRelease(void)
Release the audio output.
int sceAudioOutputBlocking(int channel, int vol, void *buf)
Output audio of the specified channel (blocking)
int sceAudioOutput2GetRestSample(void)
Get count of unplayed samples remaining.
int sceAudioOutput2ChangeLength(int samplecount)
Change the output sample count, after it's already been reserved.
int sceAudioSetChannelDataLen(int channel, int samplecount)
Change the output sample count, after it's already been reserved.
int sceAudioOutputPanned(int channel, int leftvol, int rightvol, void *buf)
Output panned audio of the specified channel.
int sceAudioGetChannelRestLength(int channel)
Get count of unplayed samples remaining.
int sceAudioGetChannelRestLen(int channel)
Get count of unplayed samples remaining.
int sceAudioSRCChReserve(int samplecount, int freq, int channels)
Reserve the audio output.
unsigned int unknown1
Definition psploadcore.h:5
unsigned int unknown2
Definition psploadcore.h:6