|
Jo Engine
2024.04.28
Jo Sega Saturn Engine
|
Go to the documentation of this file.
35 #ifndef __JO_AUDIO_H__
36 # define __JO_AUDIO_H__
38 #ifdef JO_COMPILE_WITH_AUDIO_SUPPORT
40 # define JO_SOUND_MAX_CHANNEL (6)
62 # define JO_DEFAULT_AUDIO_VOLUME (127)
64 # define JO_MAX_AUDIO_VOLUME (127)
66 # define JO_MIN_AUDIO_VOLUME (0)
100 #ifdef JO_COMPILE_WITH_FS_SUPPORT
char pan
Definition: audio.h:58
int jo_audio_usage_percent(void)
Get audio channel usage.
void jo_audio_stop_sound(const jo_sound *const sound)
Stop a sound.
unsigned int data_length
Definition: audio.h:53
@ JoSoundStereo8Bit
Definition: audio.h:46
void jo_audio_play_sound_on_channel(jo_sound *const sound, const unsigned char channel)
Play a sound on a specific channel.
unsigned char volume
Definition: audio.h:57
@ JoSoundMono8Bit
Definition: audio.h:44
@ JoSoundStereo16Bit
Definition: audio.h:47
char * data
Definition: audio.h:52
void jo_audio_free_pcm(jo_sound *sound)
Free pcm sound loaded with jo_audio_load_pcm()
void jo_audio_play_sound(jo_sound *const sound)
Play a sound on first available channel.
bool jo_audio_load_pcm_async(const char *const filename, const jo_sound_mode mode, jo_sound *sound)
Load PCM file from CD asynchronously.
unsigned char current_playing_channel
Definition: audio.h:55
@ JoSoundMono16Bit
Definition: audio.h:45
unsigned short sample_rate
Definition: audio.h:56
void jo_audio_play_cd_track(const int from_track, const int to_track, const bool repeat_infinitely)
Play a track from the CD.
bool jo_audio_load_pcm(const char *const filename, const jo_sound_mode mode, jo_sound *sound)
Load PCM file from CD.
void jo_audio_stop_cd(void)
Stop playing audio track.
jo_sound_mode
Definition: audio.h:43
jo_sound_mode mode
Definition: audio.h:54
void jo_audio_set_volume(const unsigned char vol)
Set the audio volume.