Properly change volume
This commit is contained in:
@@ -19,8 +19,14 @@ typedef struct SoundState {
|
||||
|
||||
bool musicLoaded;
|
||||
Music music;
|
||||
|
||||
f32 masterVolume;
|
||||
f32 musicVolume;
|
||||
f32 soundVolume;
|
||||
} SoundState;
|
||||
|
||||
void soundsApplyVolume(SoundState *sounds, f32 master, f32 music, f32 sound);
|
||||
|
||||
void soundsLoad(SoundState *sounds, SoundType type, f32 interval, const char *path);
|
||||
void soundsPlay(SoundState *sounds, SoundType type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user