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 b728f6b..e7b3384 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 d6de3b4..920d6f2 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