aboutsummaryrefslogtreecommitdiff
path: root/audio/mumble/files/patch-src-mumble-Audio.cpp
blob: 95fa137de40263c28ed9bd26a2ef0b8bee609763 (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
--- ../mumble-1.2.3/src/mumble/Audio.cpp	2011-02-19 16:35:16.000000000 -0500
+++ src/mumble/Audio.cpp	2011-03-01 16:46:50.000000000 -0500
@@ -65,6 +65,7 @@
 		}
 	}
 
+#if defined(__FreeBSD__) && !defined(FREEBSD_SYSTEM_CELT)
 	codec = new CELTCodec080(QLatin1String("0.9.0"));
 	if (codec->isValid()) {
 		codec->report();
@@ -102,6 +103,7 @@
 			delete codec;
 		}
 	}
+#endif
 }
 
 void CodecInit::destroy() {
@@ -132,6 +134,10 @@
 	alternatives << QString::fromLatin1("celt0.%1.dylib").arg(version);
 	alternatives << QString::fromLatin1("libcelt.%1.dylib").arg(version);
 	alternatives << QString::fromLatin1("celt.%1.dylib").arg(version);
+#elif defined(__FreeBSD__) && defined(FREEBSD_SYSTEM_CELT)
+	alternatives << QString::fromLatin1("libcelt.so.0");
+#elif defined(__FreeBSD__)
+	alternatives << QString::fromLatin1("libcelt-mumble.so.%1").arg(version);
 #elif defined(Q_OS_UNIX)
 	alternatives << QString::fromLatin1("libcelt0.so.%1").arg(version);
 	alternatives << QString::fromLatin1("libcelt.so.%1").arg(version);