1 |
diff -uNr mumble-1.2.5.old/src/mumble/OSS.cpp mumble-1.2.5/src/mumble/OSS.cpp |
2 |
--- mumble-1.2.5.old/src/mumble/OSS.cpp 2014-02-01 00:01:49.000000000 +0100 |
3 |
+++ mumble-1.2.5/src/mumble/OSS.cpp 2014-04-28 01:45:06.222094486 +0200 |
4 |
@@ -243,9 +243,9 @@ |
5 |
eMicFormat = SampleShort; |
6 |
initializeMixer(); |
7 |
|
8 |
- short buffer[iMicLength]; |
9 |
- |
10 |
while (bRunning) { |
11 |
+ short buffer[iMicLength]; |
12 |
+ |
13 |
int len = static_cast<int>(iMicLength * iMicChannels * sizeof(short)); |
14 |
ssize_t l = read(fd, buffer, len); |
15 |
if (l != len) { |