File: SDLSoundEngine.patch

package info (click to toggle)
caveexpress 2.5.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 42,288 kB
  • sloc: cpp: 63,815; ansic: 1,135; sh: 501; xml: 186; python: 74; makefile: 60; javascript: 22
file content (32 lines) | stat: -rw-r--r-- 742 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- a/src/modules/sound/SDLSoundEngine.h
+++ b/src/modules/sound/SDLSoundEngine.h
@@ -3,9 +3,7 @@
 #include "common/ConfigManager.h"
 #include "ISoundEngine.h"
 #include <unordered_map>
-
-struct Mix_Chunk;
-struct _Mix_Music;
+#include <SDL_mixer.h>
 
 #define MAX_CHANNELS 16
 
@@ -15,7 +13,7 @@
 	typedef ChunkMap::iterator ChunkMapIter;
 	ChunkMap _map;
 	vec2 _listenerPosition;
-	_Mix_Music *_music;
+	Mix_Music *_music;
 	std::string _musicPlaying;
 	int _currentChannel;
 	int _state;
--- a/src/modules/sound/SDLSoundEngine.cpp
+++ b/src/modules/sound/SDLSoundEngine.cpp
@@ -8,7 +8,6 @@
 #include "common/Singleton.h"
 #include <SDL.h>
 #include <SDL_assert.h>
-#include <SDL_mixer.h>
 
 namespace {
 const int SOUND_CLOSED = 1 << 0;