aboutsummaryrefslogtreecommitdiff
path: root/sword2/sword2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sword2/sword2.cpp')
-rw-r--r--sword2/sword2.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/sword2/sword2.cpp b/sword2/sword2.cpp
index e51aca86c4..288e7f85d0 100644
--- a/sword2/sword2.cpp
+++ b/sword2/sword2.cpp
@@ -165,7 +165,9 @@ int32 BS2State::InitialiseGame(void)
Zdebug("CALLING: Init_event_system");
Init_event_system();
Zdebug("RETURNED.");
-
+
+ _sound = new BS2Sound;
+
Zdebug("CALLING: Init_fx_queue");
Init_fx_queue(); // initialise the sound fx queue
Zdebug("RETURNED.");
@@ -284,7 +286,7 @@ void BS2State::go()
Zdebug("RETURNED.");
Zdebug("CALLING: InitialiseSound");
- rv = InitialiseSound(22050, 2, 16);
+ rv = _sound->InitialiseSound(22050, 2, 16);
Zdebug("RETURNED with rv = %.8x", rv);
// don't care if this fails, because it should still work without sound cards
// but it should set a global system flag so that we can avoid loading sound fx & streaming music