1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-01 18:43:33 +02:00

Inline SoundSystem into musicclass constructor

This commit is contained in:
Ethan Lee 2021-12-26 08:41:01 -05:00
parent c87f0e1a0c
commit 230859f8f9
2 changed files with 3 additions and 13 deletions

View File

@ -50,7 +50,9 @@ SoundTrack::SoundTrack(const char* fileName)
}
}
SoundSystem::SoundSystem(void)
/* End SDL_mixer wrapper */
musicclass::musicclass(void)
{
int audio_rate = 44100;
Uint16 audio_format = AUDIO_S16SYS;
@ -62,12 +64,7 @@ SoundSystem::SoundSystem(void)
vlog_error("Unable to initialize audio: %s", Mix_GetError());
SDL_assert(0 && "Unable to initialize audio!");
}
}
/* End SDL_mixer wrapper */
musicclass::musicclass(void)
{
safeToProcessMusic= false;
m_doFadeInVol = false;
m_doFadeOutVol = false;

View File

@ -25,12 +25,6 @@ public:
/* SDL_mixer init wrapper */
class SoundSystem
{
public:
SoundSystem(void);
};
#define musicroom(rx, ry) ((rx) + ((ry) * 20))
/* The amount of "space" for the scale of the user-set volume. */
@ -73,7 +67,6 @@ public:
std::vector<SoundTrack> soundTracks;
std::vector<MusicTrack> musicTracks;
SoundSystem soundSystem;
bool safeToProcessMusic;
int nicechange; // -1 if no song queued