blob: c6c7bc028173fd75ea11f4b47ef24279eccc03f8 (
plain) (
blame)
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
33
|
Remove esound dependency. In recent versions of libgnome,
gnome_sound_connection_get() always returns -1, so esd_sample_play()
can never work.
--- src/sound.cpp.orig 2018-08-17 12:52:26 UTC
+++ src/sound.cpp
@@ -18,9 +18,6 @@
* USA.
*/
-#include <libgnome/gnome-sound.h>
-#include <esd.h>
-
#include "sound.hpp"
@@ -40,16 +37,4 @@ Sound::~Sound()
void Sound::play(const std::string &name)
{
- int id;
-
- cache_map::iterator i = cache.find(name);
- if (i != cache.end())
- id = i->second;
- else {
- id = gnome_sound_sample_load(name.c_str(),
- (MONSTER_MASHER_SOUND_DIR + name).c_str());
- cache.insert(make_pair(name, id));
- }
-
- esd_sample_play(gnome_sound_connection_get(), id);
}
|