|
pspsdk-1.0+beta2
|

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) |
| #define PSP_NUM_AUDIO_CHANNELS 4 |
Referenced by pspAudioEnd(), pspAudioInit(), and pspAudioOutBlocking().
| #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.
Referenced by pspAudioInit().
| #define PSP_VOLUME_MAX 0x8000 |
Referenced by pspAudioInit(), and pspAudioOutBlocking().
| typedef void(* pspAudioCallback_t)(void *buf, unsigned int reqn, void *pdata) |
| typedef int(* pspAudioThreadfunc_t)(int args, void *argp) |
| void pspAudioChannelThreadCallback | ( | int | channel, |
| void * | buf, | ||
| unsigned int | reqn | ||
| ) |
References psp_audio_channelinfo::callback.
| void pspAudioEnd | ( | ) |
| void pspAudioEndPre | ( | ) |
| int pspAudioInit | ( | ) |
References psp_audio_channelinfo::callback, psp_audio_channelinfo::handle, i, NULL, psp_audio_channelinfo::pdata, PSP_NUM_AUDIO_CHANNELS, PSP_NUM_AUDIO_SAMPLES, PSP_VOLUME_MAX, sceAudioChRelease(), sceAudioChReserve(), sceKernelCreateThread(), sceKernelDeleteThread(), sceKernelStartThread(), strcpy(), psp_audio_channelinfo::threadhandle, psp_audio_channelinfo::volumeleft, and psp_audio_channelinfo::volumeright.
| int pspAudioOutBlocking | ( | unsigned int | channel, |
| unsigned int | vol1, | ||
| unsigned int | vol2, | ||
| void * | buf | ||
| ) |
References PSP_NUM_AUDIO_CHANNELS, PSP_VOLUME_MAX, and sceAudioOutputPannedBlocking().
| void pspAudioSetChannelCallback | ( | int | channel, |
| pspAudioCallback_t | callback, | ||
| void * | pdata | ||
| ) |
References psp_audio_channelinfo::callback, and psp_audio_channelinfo::pdata.
| void pspAudioSetVolume | ( | int | channel, |
| int | left, | ||
| int | right | ||
| ) |
References psp_audio_channelinfo::volumeleft, and psp_audio_channelinfo::volumeright.