aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/snd/libkvisnd.cpp
diff options
context:
space:
mode:
authorGravatar wodim2017-12-27 20:22:42 +0000
committerGravatar GitHub2017-12-27 20:22:42 +0000
commit582252f695587d3b9f67f1cee24315aff5f8ba2d (patch)
tree96e5650359b5704fd46309b057dba22ecbdabcc6 /src/modules/snd/libkvisnd.cpp
parentWorkaround to vc_redist #2335 (#2336) (diff)
downloadKVIrc-582252f695587d3b9f67f1cee24315aff5f8ba2d.tar.gz
KVIrc-582252f695587d3b9f67f1cee24315aff5f8ba2d.tar.bz2
KVIrc-582252f695587d3b9f67f1cee24315aff5f8ba2d.zip
Fix the sound system autodetection (#2278)
* Automatically detect a sound system during first startup. Previously, the default system for Windows was "null". * Remove phonon from the sound system autodetection list. Our phonon detection code didn't work well, and "qt" is a safe default for Linux.
Diffstat (limited to 'src/modules/snd/libkvisnd.cpp')
-rw-r--r--src/modules/snd/libkvisnd.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/modules/snd/libkvisnd.cpp b/src/modules/snd/libkvisnd.cpp
index a324b91a9..92ea18fa6 100644
--- a/src/modules/snd/libkvisnd.cpp
+++ b/src/modules/snd/libkvisnd.cpp
@@ -210,16 +210,6 @@ bool KviSoundPlayer::event(QEvent * e)
void KviSoundPlayer::detectSoundSystem()
{
-#ifdef COMPILE_PHONON_SUPPORT
- // FIXME: Phonon seems to freeze on windows sometimes.. maybe it's better to auto-detect winmm ?
- if(!m_pPhononPlayer)
- m_pPhononPlayer = Phonon::createPlayer(Phonon::MusicCategory);
- if(m_pPhononPlayer->state() != Phonon::ErrorState)
- {
- KVI_OPTION_STRING(KviOption_stringSoundSystem) = "phonon";
- return;
- }
-#endif
#if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW)
KVI_OPTION_STRING(KviOption_stringSoundSystem) = "winmm";
#else