Allow WASAPI or DS as the Windows sound API as DirectSound (at
authorCarl Hetherington <cth@carlh.net>
Sun, 14 Apr 2019 21:08:14 +0000 (21:08 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 15 Apr 2019 00:04:44 +0000 (01:04 +0100)
least with RtAudio) does not seem to support > 2 channels.

src/wx/film_viewer.cc
src/wx/wx_util.h

index b728f6b2a0a47c8a69d54a69f0b5761260b5fe42..e7b338409d3e46aa1f1b8af39f99164b72c17bd2 100644 (file)
@@ -652,6 +652,7 @@ FilmViewer::config_changed (Config::Property p)
                }
 
                _audio_channels = _audio.getDeviceInfo(st).outputChannels;
+               cout << "Opening stream " << st << "(" << _audio.getDeviceInfo(st).name << ") probed=" << _audio.getDeviceInfo(st).probed << " with " << _audio_channels << "\n";
 
                RtAudio::StreamParameters sp;
                sp.deviceId = st;
index d6de3b42772b60ff1ac2a213b4938a4b6bd08bd8..920d6f2440cf8cd36c8abccbdd36d2e8ba50efee 100644 (file)
@@ -58,7 +58,7 @@ class wxSplashScreen;
 #define DCPOMATIC_RTAUDIO_API RtAudio::LINUX_PULSE
 #endif
 #ifdef DCPOMATIC_WINDOWS
-#define DCPOMATIC_RTAUDIO_API RtAudio::WINDOWS_DS
+#define DCPOMATIC_RTAUDIO_API RtAudio::UNSPECIFIED
 #endif
 #ifdef DCPOMATIC_OSX
 #define DCPOMATIC_RTAUDIO_API RtAudio::MACOSX_CORE