|
sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
|
#include <stdint.h>Go to the source code of this file.
Classes | |
| struct | audio_stream_format |
| struct | audio_sound_desc |
| struct | audio_version |
Macros | |
| #define | AUDIO_OK 0 |
| #define | AUDIO_ERR_NOT_INITIALIZED 1 |
| #define | AUDIO_ERR_ALREADY_INITIALIZED 2 |
| #define | AUDIO_ERR_RPC_FAILED 3 |
| #define | AUDIO_ERR_FORMAT_NOT_SUPPORTED 4 |
| #define | AUDIO_ERR_OUT_OF_MEMORY 5 |
| #define | AUDIO_ERR_INVALID_ARGUMENT 6 |
| #define | AUDIO_ERR_NO_FREE_CHANNEL 7 |
| #define | AUDIO_ERR_OUT_OF_SPU_MEMORY 8 |
| #define | AUDIO_ERR_BAD_SOUND_DATA 9 |
| #define | AUDIO_ERR_STREAM_NOT_STARTED 10 |
| #define | AUDIO_ERR_STREAM_PAUSED 11 |
| #define | AUDIO_ERR_TIMEOUT 12 |
| #define | AUDIO_ERR_INTERRUPTED 13 |
| #define | AUDIO_ERR_DRIVER_LOAD_FAILED 14 |
| #define | AUDIO_ERR_BUSY 15 |
| #define | AUDIO_EFFECT_OFF 0 |
| #define | AUDIO_EFFECT_ROOM 1 |
| #define | AUDIO_EFFECT_STUDIO_SMALL 2 |
| #define | AUDIO_EFFECT_STUDIO_MEDIUM 3 |
| #define | AUDIO_EFFECT_STUDIO_LARGE 4 |
| #define | AUDIO_EFFECT_HALL 5 |
| #define | AUDIO_EFFECT_SPACE 6 |
| #define | AUDIO_EFFECT_ECHO 7 |
| #define | AUDIO_EFFECT_DELAY 8 |
| #define | AUDIO_EFFECT_PIPE 9 |
| #define | AUDIO_SOUND_INVALID 0 |
Typedefs | |
| typedef int32_t | audio_sound_t |
| typedef struct audio_stream_format | audio_stream_format_t |
| typedef struct audio_sound_desc | audio_sound_desc_t |
| typedef struct audio_version | audio_version_t |
| typedef void(*) | audio_low_data_fn(void *user, int32_t queued_source_bytes) |
PS2 audio library: PCM streaming and preloaded ADPCM sounds on mixer channels.
Every function here works on one default context, created by audio_init() and released by audio_shutdown(). audio_core.h has the same functions on an explicit context.
Return values: a value >= 0 is success (some functions return a count or a channel number). A failure is the negated error code, for example -AUDIO_ERR_INVALID_ARGUMENT. See Concepts for how the parts fit together.
Licensed under the Academic Free License version 2.0.
Definition in file audio.h.
| #define AUDIO_SOUND_INVALID 0 |
| typedef void(*) audio_low_data_fn(void *user, int32_t queued_source_bytes) |
Callback for audio_stream_set_low_data_callback().
| user | Pointer given at registration. |
| queued_source_bytes | Bytes still queued when the callback runs. |
| typedef struct audio_sound_desc audio_sound_desc_t |
Raw PS-ADPCM data for audio_sound_load_adpcm().
| typedef int32_t audio_sound_t |
| typedef struct audio_stream_format audio_stream_format_t |
Format of the PCM data given to audio_stream_queue_pcm().
| typedef struct audio_version audio_version_t |
Library and driver versions, filled by audio_get_version().