|
sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
|
Sounds played on channels 0 to 23. More...
Macros | |
| #define | audsrv_adpcm_set_volume(ch, vol) |
| #define | audsrv_play_adpcm(adpcm) |
Functions | |
| int | audsrv_adpcm_init (void) |
| int | audsrv_adpcm_set_volume_and_pan (int ch, int vol, int pan) |
| int | audsrv_load_adpcm (audsrv_adpcm_t *adpcm, void *buffer, int size) |
| int | audsrv_ch_play_adpcm (int ch, audsrv_adpcm_t *adpcm) |
| int | audsrv_is_adpcm_playing (int ch, audsrv_adpcm_t *adpcm) |
| int | audsrv_free_adpcm (audsrv_adpcm_t *adpcm) |
Sounds played on channels 0 to 23.
| #define audsrv_adpcm_set_volume | ( | ch, | |
| vol ) |
Sets the volume of a channel and the pan to center (pan 0).
| #define audsrv_play_adpcm | ( | adpcm | ) |
Plays a sample on the first free channel.
| int audsrv_adpcm_init | ( | void | ) |
Frees all loaded samples and stops every voice. The stream is not touched. Can be called repeatedly.
| int audsrv_adpcm_set_volume_and_pan | ( | int | ch, |
| int | vol, | ||
| int | pan ) |
Sets volume and pan of a channel. Both persist across plays and can be set before the first play.
| ch | Channel 0 to 23. |
| vol | Volume in percent, 0 to 100. |
| pan | -100 (left) to 100 (right), 0 centered. |
| int audsrv_ch_play_adpcm | ( | int | ch, |
| audsrv_adpcm_t * | adpcm ) |
Plays a loaded sample on channel ch (0-23), replacing what is playing there. Any other value of ch plays it on the first free channel.
| ch | The channel, or -1 for any free channel. |
| adpcm | The sample. |
| int audsrv_free_adpcm | ( | audsrv_adpcm_t * | adpcm | ) |
Frees a sample and clears its descriptor.
| int audsrv_is_adpcm_playing | ( | int | ch, |
| audsrv_adpcm_t * | adpcm ) |
Whether this sample is playing on channel ch.
| int audsrv_load_adpcm | ( | audsrv_adpcm_t * | adpcm, |
| void * | buffer, | ||
| int | size ) |
Loads an APCM sample image. The buffer can be freed on return.
| adpcm | Receives the sample descriptor. |
| buffer | The whole file. |
| size | Its size. |