Ticket #7757: 7757-winaudio_48k.patch

File 7757-winaudio_48k.patch, 563 bytes (added by Jeff Lu <jll544@…>, 11 years ago)

Waveout audio fix to lock SPDIF sample rate to 48k

Line 
1Index: libs/libmyth/audiooutputwin.cpp
2===================================================================
3--- libs/libmyth/audiooutputwin.cpp     (revision 22974)
4+++ libs/libmyth/audiooutputwin.cpp     (working copy)
5@@ -144,6 +144,11 @@
6     // so just return a set of standard rates
7     const int srates[] = { 11025, 22050, 44100, 48000 };
8     vector<int> rates(srates, srates + sizeof(srates) / sizeof(int) );
9+    if (audio_passthru || audio_enc)
10+    {
11+        rates.clear();
12+        rates.push_back(48000);
13+    }
14     return rates;
15 }
16