1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-17 03:45:56 +01:00

Force the directsound sink on windows

This commit is contained in:
David Sansome 2010-05-04 15:51:23 +00:00
parent 84441decce
commit 19b08540ef

View File

@ -122,6 +122,14 @@ void GstEngine::ReloadSettings() {
sink_ = s.value("sink", kAutoSink).toString(); sink_ = s.value("sink", kAutoSink).toString();
device_ = s.value("device").toString(); device_ = s.value("device").toString();
#ifdef Q_OS_WIN32
if (sink_ == kAutoSink) {
// HACK: Force the direct sound sink on Windows unless the user has
// explicitly chosen otherwise.
sink_ = "directsoundsink";
}
#endif
} }