|
sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
|
Functions | |
| int | audio_init (void) |
| int | audio_shutdown (void) |
| const char * | audio_get_error_message (int error_code) |
| int | audio_get_version (audio_version_t *version_out) |
| int | audio_set_master_volume (int volume_percent) |
| int | audio_get_channel_count (void) |
| int audio_get_channel_count | ( | void | ) |
Number of mixer channels.
| const char * audio_get_error_message | ( | int | error_code | ) |
Text for an error code.
| error_code | A code from Error codes, with either sign. |
| int audio_get_version | ( | audio_version_t * | version_out | ) |
Library and driver versions.
| [out] | version_out | Receives the versions; the driver fields are 0 when not initialized. |
| int audio_init | ( | void | ) |
Connects to the audio driver. audio.irx must already be loaded.
| int audio_set_master_volume | ( | int | volume_percent | ) |
Scales the final mix of the stream and all channels.
| volume_percent | 0 (silent) to 100 (full). Values outside the range are rejected. |
| int audio_shutdown | ( | void | ) |
Stops everything, frees every sound and disconnects. Safe to call when not initialized.
Threads blocked in audio_stream_wait_until_writable() return -AUDIO_ERR_INTERRUPTED. Stop the threads that use the library before calling this.