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

Functions return them negated; audsrv_get_error() returns the last one as a positive value. More...

Macros

#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

Detailed Description

Functions return them negated; audsrv_get_error() returns the last one as a positive value.

Macro Definition Documentation

◆ AUDSRV_ERR_ARGS

#define AUDSRV_ERR_ARGS   0x0005

Invalid arguments, or a call the stream state does not allow.

Definition at line 33 of file audsrv.h.

◆ AUDSRV_ERR_FAILED_TO_CREATE_SEMA

#define AUDSRV_ERR_FAILED_TO_CREATE_SEMA   0x0011

Reserved; never returned.

Definition at line 37 of file audsrv.h.

◆ AUDSRV_ERR_FAILED_TO_LOAD_ADPCM

#define AUDSRV_ERR_FAILED_TO_LOAD_ADPCM   0x0010

The sample could not be loaded.

Definition at line 36 of file audsrv.h.

◆ AUDSRV_ERR_FORMAT_NOT_SUPPORTED

#define AUDSRV_ERR_FORMAT_NOT_SUPPORTED   0x0003

The stream format is not supported.

Definition at line 31 of file audsrv.h.

◆ AUDSRV_ERR_NO_DISC

#define AUDSRV_ERR_NO_DISC   0x0006

Returned by every CD call; CD audio is not supported.

Definition at line 34 of file audsrv.h.

◆ AUDSRV_ERR_NO_MORE_CHANNELS

#define AUDSRV_ERR_NO_MORE_CHANNELS   0x0007

No free channel for audsrv_ch_play_adpcm().

Definition at line 35 of file audsrv.h.

◆ AUDSRV_ERR_NOERROR

#define AUDSRV_ERR_NOERROR   0x0000

No error.

Definition at line 28 of file audsrv.h.

◆ AUDSRV_ERR_NOT_INITIALIZED

#define AUDSRV_ERR_NOT_INITIALIZED   0x0001

audsrv_init() has not been called, or audsrv_quit() has.

Definition at line 29 of file audsrv.h.

◆ AUDSRV_ERR_OUT_OF_MEMORY

#define AUDSRV_ERR_OUT_OF_MEMORY   0x0004

Out of memory or SPU2 memory.

Definition at line 32 of file audsrv.h.

◆ AUDSRV_ERR_RPC_FAILED

#define AUDSRV_ERR_RPC_FAILED   0x0002

The audio driver did not answer.

Definition at line 30 of file audsrv.h.