sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
Error codes

Positive constants; functions return them negated. More...

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

Detailed Description

Positive constants; functions return them negated.

Macro Definition Documentation

◆ AUDIO_ERR_ALREADY_INITIALIZED

#define AUDIO_ERR_ALREADY_INITIALIZED   2

The audio system is already running.

Definition at line 36 of file audio.h.

◆ AUDIO_ERR_BAD_SOUND_DATA

#define AUDIO_ERR_BAD_SOUND_DATA   9

The sound data failed validation.

Definition at line 43 of file audio.h.

◆ AUDIO_ERR_BUSY

#define AUDIO_ERR_BUSY   15

The resource is in use.

Definition at line 49 of file audio.h.

◆ AUDIO_ERR_DRIVER_LOAD_FAILED

#define AUDIO_ERR_DRIVER_LOAD_FAILED   14

The driver module could not be loaded.

Definition at line 48 of file audio.h.

◆ AUDIO_ERR_FORMAT_NOT_SUPPORTED

#define AUDIO_ERR_FORMAT_NOT_SUPPORTED   4

Sample rate, bit depth or channel count outside the supported set.

Definition at line 38 of file audio.h.

◆ AUDIO_ERR_INTERRUPTED

#define AUDIO_ERR_INTERRUPTED   13

A wait ended because the stream or the audio system was shut down.

Definition at line 47 of file audio.h.

◆ AUDIO_ERR_INVALID_ARGUMENT

#define AUDIO_ERR_INVALID_ARGUMENT   6

A null pointer, an out-of-range value, or a handle that is not live.

Definition at line 40 of file audio.h.

◆ AUDIO_ERR_NO_FREE_CHANNEL

#define AUDIO_ERR_NO_FREE_CHANNEL   7

audio_play_sound() found every channel busy.

Definition at line 41 of file audio.h.

◆ AUDIO_ERR_NOT_INITIALIZED

#define AUDIO_ERR_NOT_INITIALIZED   1

audio_init() has not been called, or audio_shutdown() has.

Definition at line 35 of file audio.h.

◆ AUDIO_ERR_OUT_OF_MEMORY

#define AUDIO_ERR_OUT_OF_MEMORY   5

No memory, or the driver's sound table is full.

Definition at line 39 of file audio.h.

◆ AUDIO_ERR_OUT_OF_SPU_MEMORY

#define AUDIO_ERR_OUT_OF_SPU_MEMORY   8

No free SPU2 RAM block large enough for the sound.

Definition at line 42 of file audio.h.

◆ AUDIO_ERR_RPC_FAILED

#define AUDIO_ERR_RPC_FAILED   3

The driver did not answer.

Definition at line 37 of file audio.h.

◆ AUDIO_ERR_STREAM_NOT_STARTED

#define AUDIO_ERR_STREAM_NOT_STARTED   10

The call needs a started stream.

Definition at line 44 of file audio.h.

◆ AUDIO_ERR_STREAM_PAUSED

#define AUDIO_ERR_STREAM_PAUSED   11

Waiting would never finish because the stream is paused.

Definition at line 45 of file audio.h.

◆ AUDIO_ERR_TIMEOUT

#define AUDIO_ERR_TIMEOUT   12

A wait timed out.

Definition at line 46 of file audio.h.

◆ AUDIO_OK

#define AUDIO_OK   0

Success. Functions that return a count or a channel number return it as a value >= 0.

Definition at line 33 of file audio.h.