|
sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
|
Go to the source code of this file.
Classes | |
| struct | audsrv_fmt_t |
| struct | audsrv_adpcm_t |
Macros | |
| #define | AUDSRV_IRX 0x870884e |
| #define | MIN_VOLUME 0 |
| #define | MAX_VOLUME 100 |
| #define | AUDSRV_ERR_NOERROR 0x0000 |
| #define | AUDSRV_ERR_NOT_INITIALIZED 0x0001 |
| #define | AUDSRV_ERR_RPC_FAILED 0x0002 |
| #define | AUDSRV_ERR_FORMAT_NOT_SUPPORTED 0x0003 |
| #define | AUDSRV_ERR_OUT_OF_MEMORY 0x0004 |
| #define | AUDSRV_ERR_ARGS 0x0005 |
| #define | AUDSRV_ERR_NO_DISC 0x0006 |
| #define | AUDSRV_ERR_NO_MORE_CHANNELS 0x0007 |
| #define | AUDSRV_ERR_FAILED_TO_LOAD_ADPCM 0x0010 |
| #define | AUDSRV_ERR_FAILED_TO_CREATE_SEMA 0x0011 |
| #define | audsrv_adpcm_set_volume(ch, vol) |
| #define | audsrv_play_adpcm(adpcm) |
Typedefs | |
| typedef struct audsrv_fmt_t | audsrv_fmt_t |
| typedef struct audsrv_adpcm_t | audsrv_adpcm_t |
| typedef int(*) | audsrv_callback_t(void *arg) |
audsrv source compatibility for the audio library.
Code written against the audsrv API builds and runs on top of audio without changes. Streaming maps onto the audio stream, samples onto audio sounds and channels. CD audio is not supported and reports AUDSRV_ERR_NO_DISC. Moving from audsrv to audio lists each call with its audio equivalent and the differences.
Licensed under the Academic Free License version 2.0.
Definition in file audsrv.h.
| #define AUDSRV_IRX 0x870884e |
| typedef struct audsrv_adpcm_t audsrv_adpcm_t |
A loaded ADPCM sample. Treat it as opaque: audsrv_load_adpcm() fills it and the other calls read it.
| typedef int(*) audsrv_callback_t(void *arg) |
Callback type for audsrv_on_fillbuf() and audsrv_on_cdda_stop().
| typedef struct audsrv_fmt_t audsrv_fmt_t |
Stream format: output frequency in Hz, bits per sample (8 or 16), channels (1 or 2).