- Removed volume per channel

- [NEW] JA_SetSoundVolume sets volume for all sound effects
- [NEW] JA_SetMusicVolume sets volume for the music
- JA_SetVolume works as always: sets volume for both, with sounds volume halved.
This commit is contained in:
2022-11-24 16:10:33 +01:00
parent 42986dd46a
commit debd80f6af
2 changed files with 19 additions and 13 deletions

View File

@@ -16,6 +16,7 @@ void JA_PauseMusic();
void JA_ResumeMusic();
void JA_StopMusic();
int JA_SetVolume(int volume);
int JA_SetMusicVolume(int volume);
JA_Music_state JA_GetMusicState();
void JA_DeleteMusic(JA_Music music);
@@ -23,10 +24,10 @@ JA_Sound JA_NewSound(Uint8* buffer, Uint32 length);
JA_Sound JA_LoadSound(const char* filename);
int JA_PlaySound(JA_Sound sound, const int loop = 0);
void JA_DeleteSound(JA_Sound sound);
int JA_SetSoundVolume(int volume);
void JA_PauseChannel(const int channel);
void JA_ResumeChannel(const int channel);
void JA_StopChannel(const int channel);
JA_Channel_state JA_GetChannelState(const int channel);
int JA_SetChannelVolume(const int channel, int volume);