SAGA2: Move mixer assignment to constructor. CID 1457855

This commit is contained in:
Eugene Sandulenko 2021-07-06 14:55:39 +02:00
parent 7c909cd569
commit 84fbbc156c
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -545,6 +545,7 @@ void cleanupAudio() {
audioInterface::audioInterface() {
_music = nullptr;
_mixer = g_system->getMixer();
}
audioInterface::~audioInterface() {
@ -552,7 +553,6 @@ audioInterface::~audioInterface() {
}
void audioInterface::initAudioInterface(hResContext *musicContext) {
_mixer = g_system->getMixer();
_music = new Music(musicContext, _mixer);
}