The NEW Pong Game  V13.2.1
An interesting implemnettaion of the pong game
sound_effects.hpp
Go to the documentation of this file.
1 
8 #ifndef SOUND_EFFECTS_HPP
9 #define SOUND_EFFECTS_HPP
10 
11 #include <SDL_mixer.h>
12 
21 {
22 public:
31  static void change_music_track(Mix_Music *music_file,
32  int fade_out_duration = 500,
33  int fade_in_duration = 500,
34  int volume = MIX_MAX_VOLUME / 3);
35 };
36 
37 #endif
Utility class for handling sound effects and music in the game.
Definition: sound_effects.hpp:21
static void change_music_track(Mix_Music *music_file, int fade_out_duration=500, int fade_in_duration=500, int volume=MIX_MAX_VOLUME/3)
Changes background music with fade effect.
Definition: sound_effects.cpp:24