mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
SAGA2: Move mixer assignment to constructor. CID 1457855
This commit is contained in:
parent
7c909cd569
commit
84fbbc156c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user