The NEW Pong Game
V13.2.1
An interesting implemnettaion of the pong game
Loading...
Searching...
No Matches
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
20
class
SoundEffects
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
SoundEffects
Utility class for handling sound effects and music in the game.
Definition
sound_effects.hpp:21
SoundEffects::change_music_track
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
The code and any documentation on this repository is protected under a usage license.
Copyright (c) 2024 - The NEW Pong Game | All rights reserved
Vasileios Filippos Skarleas, Dounia Bakalem, Yanis Sadoun