OPENPANDORA: Replace defunct MIXER_DOUBLE_BUFFERING by working code

This commit is contained in:
Max Horn 2011-04-19 15:09:35 +02:00
parent c37f36d0a8
commit b49f313dd4
2 changed files with 11 additions and 7 deletions

View file

@ -26,20 +26,17 @@
#include "backends/platform/openpandora/op-sdl.h"
#include "base/main.h"
#include "backends/mixer/doublebuffersdl/doublebuffersdl-mixer.h"
#include "backends/saves/default/default-saves.h"
#include "backends/timer/default/default-timer.h"
#include "common/archive.h"
#include "common/config-manager.h"
#include "common/debug.h"
#include "common/events.h"
#include "common/file.h"
#include "common/util.h"
#include "common/file.h"
#include "base/main.h"
#include "backends/saves/default/default-saves.h"
#include "backends/timer/default/default-timer.h"
#include "audio/mixer_intern.h"
#include <stdio.h>
@ -78,6 +75,14 @@ void OSystem_OP::initBackend() {
// }
//
// Create the mixer manager
if (_mixer == 0) {
_mixerManager = new DoubleBufferSDLMixerManager();
// Setup and start mixer
_mixerManager->init();
}
/* Setup default save path to be workingdir/saves */
char savePath[PATH_MAX+1];