MACOSX: Remove mixer init from derived class for macosx backend

Since the macosx backend now does the same as the base SDL backend
we can just let the base class do its stuff.
This commit is contained in:
Thierry Crozat 2017-09-12 21:30:29 +01:00
parent 738e56268a
commit 3607b79d7d

View File

@ -28,7 +28,6 @@
#ifdef MACOSX
#include "backends/audiocd/macosx/macosx-audiocd.h"
#include "backends/mixer/doublebuffersdl/doublebuffersdl-mixer.h"
#include "backends/platform/sdl/macosx/appmenu_osx.h"
#include "backends/platform/sdl/macosx/macosx.h"
#include "backends/updates/macosx/macosx-updates.h"
@ -62,14 +61,6 @@ void OSystem_MacOSX::init() {
}
void OSystem_MacOSX::initBackend() {
// Create the mixer manager
if (_mixer == 0) {
_mixerManager = new SdlMixerManager();
// Setup and start mixer
_mixerManager->init();
}
#ifdef USE_TRANSLATION
// We need to initialize the translataion manager here for the following
// call to replaceApplicationMenuItems() work correctly