uOFW
Reverse engineered PSP kernel 6.60.
Loading...
Searching...
No Matches
audio.h
1/* Copyright (C) 2011, 2012 The uOFW team
2 See the file COPYING for copying permission.
3*/
4
12#include "common_header.h"
13
19/* Specific error codes for the Audio Driver. */
20
21#define SCE_AUDIO_ERROR_NOT_INITIALIZED (0x80260001)
22#define SCE_AUDIO_ERROR_OUTPUT_BUSY (0x80260002)
23#define SCE_AUDIO_ERROR_INVALID_CH (0x80260003)
24#define SCE_AUDIO_ERROR_PRIV_REQUIRED (0x80260004)
25#define SCE_AUDIO_ERROR_NOT_FOUND (0x80260005)
26#define SCE_AUDIO_ERROR_INVALID_SIZE (0x80260006)
27#define SCE_AUDIO_ERROR_INVALID_FORMAT (0x80260007)
28#define SCE_AUDIO_ERROR_NOT_RESERVED (0x80260008)
29#define SCE_AUDIO_ERROR_NOT_OUTPUT (0x80260009)
30#define SCE_AUDIO_ERROR_INVALID_FREQUENCY (0x8026000A)
31#define SCE_AUDIO_ERROR_INVALID_VOLUME (0x8026000B)
32#define SCE_AUDIO_ERROR_INPUT_BUSY (0x80260010)
33
35typedef struct
36{
38 int unk0;
40 int gain;
42 int unk2;
44 int unk3;
46 int unk4;
48 int unk5;
50
60int sceAudioOutput(u32 chanId, int vol, void *buf);
61
71int sceAudioOutputBlocking(u32 chanId, int vol, void *buf);
72
83int sceAudioOutputPanned(u32 chanId, int leftVol, int rightVol, void *buf);
84
95int sceAudioOutputPannedBlocking(u32 chanId, int leftVol, int rightVol, void *buf);
96
106int sceAudioChReserve(int channel, int sampleCount, int format);
107
120int sceAudioOneshotOutput(int chanId, int sampleCount, int fmt, int leftVol, int rightVol, void *buf);
121
129int sceAudioChRelease(u32 channel);
130
139
148int sceAudioSetChannelDataLen(u32 chanId, int sampleCount);
149
159int sceAudioChangeChannelVolume(u32 chanId, int leftVol, int rightVol);
160
169int sceAudioChangeChannelConfig(u32 chanId, int format);
170
178int sceAudioOutput2ChangeLength(int sampleCount);
179
186
195
203int sceAudioOutput2Reserve(int sampleCount);
204
213int sceAudioOutput2OutputBlocking(int vol, void *buf);
214
221
230
235
240
245
254
263
273int sceAudioSRCChReserve(int sampleCount, int freq, int numChans);
274
281
290int sceAudioSRCOutputBlocking(int vol, void *buf);
291
298
307
317int sceAudioInputInit(int arg0, int gain, int arg2);
318
328int sceAudioInputBlocking(int sampleCount, int freq, void *buf);
329
339int sceAudioInput(int sampleCount, int freq, void *buf);
340
347
354
359
int sceAudioInputInit(int arg0, int gain, int arg2)
int sceAudioOutput2Reserve(int sampleCount)
int sceAudioChangeChannelConfig(u32 chanId, int format)
int sceAudioSetFrequency(int freq)
int sceAudioSetChannelDataLen(u32 chanId, int sampleCount)
int sceAudioPollInputEnd()
int sceAudioOutputPanned(u32 chanId, int leftVol, int rightVol, void *buf)
int sceAudioWaitInputEnd()
int sceAudioEnd()
int sceAudioChReserve(int channel, int sampleCount, int format)
int sceAudioOutput(u32 chanId, int vol, void *buf)
int sceAudioOutputBlocking(u32 chanId, int vol, void *buf)
int sceAudioInputInitEx(SceAudioInputParams *param)
int sceAudioInit()
int sceAudioChRelease(u32 channel)
int sceAudioOneshotOutput(int chanId, int sampleCount, int fmt, int leftVol, int rightVol, void *buf)
int sceAudioSetVolumeOffset(int arg)
int sceAudioGetChannelRestLength(u32 chanId)
int sceAudioInput(int sampleCount, int freq, void *buf)
int sceAudioOutput2OutputBlocking(int vol, void *buf)
int sceAudioOutput2ChangeLength(int sampleCount)
int sceAudioInputBlocking(int sampleCount, int freq, void *buf)
int sceAudioSRCChReserve(int sampleCount, int freq, int numChans)
int sceAudioChangeChannelVolume(u32 chanId, int leftVol, int rightVol)
int sceAudio_driver_5182B550(int arg)
int sceAudioSRCOutputBlocking(int vol, void *buf)
int sceAudioOutput2Release(void)
int sceAudioLoopbackTest(int arg0)
int sceAudioGetInputLength()
int sceAudioSRCChRelease(void)
int sceAudioOutputPannedBlocking(u32 chanId, int leftVol, int rightVol, void *buf)
int sceAudioGetChannelRestLen(u32 chanId)
int sceAudioOutput2GetRestSample(void)
int sceAudio_driver_FF298CE7(int arg)
Definition audio.h:36
int unk4
Definition audio.h:46
int unk2
Definition audio.h:42
int unk0
Definition audio.h:38
int unk5
Definition audio.h:48
int gain
Definition audio.h:40
int unk3
Definition audio.h:44