PSPSDK 1.0+beta2
Loading...
Searching...
No Matches
pspaudiolib.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  psp_audio_channelinfo
 

Macros

#define PSP_NUM_AUDIO_CHANNELS   4
 
#define PSP_NUM_AUDIO_SAMPLES   1024
 This is the number of frames you can update per callback, a frame being 1 sample for mono, 2 samples for stereo etc.
 
#define PSP_VOLUME_MAX   0x8000
 

Typedefs

typedef void(* pspAudioCallback_t) (void *buf, unsigned int reqn, void *pdata)
 
typedef int(* pspAudioThreadfunc_t) (int args, void *argp)
 

Functions

int pspAudioInit ()
 
void pspAudioEndPre ()
 
void pspAudioEnd ()
 
void pspAudioSetVolume (int channel, int left, int right)
 
void pspAudioChannelThreadCallback (int channel, void *buf, unsigned int reqn)
 
void pspAudioSetChannelCallback (int channel, pspAudioCallback_t callback, void *pdata)
 
int pspAudioOutBlocking (unsigned int channel, unsigned int vol1, unsigned int vol2, void *buf)
 

Macro Definition Documentation

◆ PSP_NUM_AUDIO_CHANNELS

#define PSP_NUM_AUDIO_CHANNELS   4

◆ PSP_NUM_AUDIO_SAMPLES

#define PSP_NUM_AUDIO_SAMPLES   1024

This is the number of frames you can update per callback, a frame being 1 sample for mono, 2 samples for stereo etc.

◆ PSP_VOLUME_MAX

#define PSP_VOLUME_MAX   0x8000

Typedef Documentation

◆ pspAudioCallback_t

typedef void(* pspAudioCallback_t) (void *buf, unsigned int reqn, void *pdata)

◆ pspAudioThreadfunc_t

typedef int(* pspAudioThreadfunc_t) (int args, void *argp)

Function Documentation

◆ pspAudioChannelThreadCallback()

void pspAudioChannelThreadCallback ( int  channel,
void buf,
unsigned int  reqn 
)

◆ pspAudioEnd()

◆ pspAudioEndPre()

void pspAudioEndPre ( )

◆ pspAudioInit()

◆ pspAudioOutBlocking()

int pspAudioOutBlocking ( unsigned int  channel,
unsigned int  vol1,
unsigned int  vol2,
void buf 
)

◆ pspAudioSetChannelCallback()

void pspAudioSetChannelCallback ( int  channel,
pspAudioCallback_t  callback,
void pdata 
)

◆ pspAudioSetVolume()

void pspAudioSetVolume ( int  channel,
int  left,
int  right 
)