Header file for audio management in OSLib, providing structures and functions for playing various sound formats.
More...
|
int | oslInitAudio () |
| Initializes the audio system.
|
|
void | oslDeinitAudio () |
| Deinitializes the audio system.
|
|
void | oslInitAudioME (int formats) |
| Initializes Media Engine audio support.
|
|
OSL_SOUND * | oslLoadSoundFile (const char *filename, int stream) |
| Loads a sound file and determines its format based on the file extension.
|
|
OSL_SOUND * | oslLoadSoundFileWAV (const char *filename, int stream) |
| Loads a WAV sound file.
|
|
OSL_SOUND * | oslLoadSoundFileBGM (const char *filename, int stream) |
| Loads a BGM sound file.
|
|
OSL_SOUND * | oslLoadSoundFileMOD (const char *filename, int stream) |
| Loads a MOD sound file.
|
|
OSL_SOUND * | oslLoadSoundFileMP3 (const char *filename, int stream) |
| Loads an MP3 sound file.
|
|
OSL_SOUND * | oslLoadSoundFileAT3 (const char *filename, int stream) |
| Loads an AT3 (ATRAC3) sound file.
|
|
void | oslSetModSampleRate (int freq, int stereo, int shift) |
| Sets the sample rate for MOD file playback in OSLib.
|
|
void | oslPlaySound (OSL_SOUND *s, int voice) |
| Plays a sound on a specified channel.
|
|
void | oslStopSound (OSL_SOUND *s) |
| Stops a currently playing sound.
|
|
void | oslPauseSound (OSL_SOUND *s, int pause) |
| Pauses, resumes, or toggles a sound.
|
|
void | oslDeleteSound (OSL_SOUND *s) |
| Deletes a sound, freeing associated memory.
|
|
void | oslAudioVSync () |
| Synchronizes audio streaming with the PSP's power management.
|
|
int | oslGetSoundChannel (OSL_SOUND *s) |
| Retrieves the channel number on which a specific sound is currently being played.
|
|
int | oslAudioCreateChannel (int i, int format, int numSamples, OSL_SOUND *s) |
| Creates an audio channel.
|
|
int | oslAudioRecreateChannel (int i, int format, int numSamples, OSL_SOUND *s) |
| Recreates an existing audio channel with new parameters.
|
|
void | oslAudioDeleteChannel (int i) |
| Deletes an audio channel.
|
|
int | oslAudioOutBlocking (unsigned int channel, unsigned int vol1, unsigned int vol2, void *buf) |
| Outputs audio to a channel, blocking until completion.
|
|
int | oslSoundLoopFunc (OSL_SOUND *s, int voice) |
| Callback function that loops a sound indefinitely.
|
|
Header file for audio management in OSLib, providing structures and functions for playing various sound formats.