|
From: <sag...@us...> - 2010-09-13 23:32:04
|
Revision: 711
http://modplug.svn.sourceforge.net/modplug/?rev=711&view=rev
Author: saga-games
Date: 2010-09-13 23:31:58 +0000 (Mon, 13 Sep 2010)
Log Message:
-----------
[Mod] On first install, choose the default ASIO driver instead of DirectSound if there is one.
Modified Paths:
--------------
trunk/OpenMPT/mptrack/MainFrm.cpp
Modified: trunk/OpenMPT/mptrack/MainFrm.cpp
===================================================================
--- trunk/OpenMPT/mptrack/MainFrm.cpp 2010-09-13 17:21:44 UTC (rev 710)
+++ trunk/OpenMPT/mptrack/MainFrm.cpp 2010-09-13 23:31:58 UTC (rev 711)
@@ -411,7 +411,8 @@
rgbCustomColors[ncol] = GetPrivateProfileDWord("Display", s, rgbCustomColors[ncol], iniFile);
}
- m_nWaveDevice = GetPrivateProfileLong("Sound Settings", "WaveDevice", (SNDDEV_DSOUND<<8), iniFile);
+ LONG defaultDevice = EnumerateSoundDevices(SNDDEV_ASIO, 0, nullptr, 0) ? SNDDEV_ASIO : SNDDEV_DSOUND;
+ m_nWaveDevice = GetPrivateProfileLong("Sound Settings", "WaveDevice", (defaultDevice << 8), iniFile);
m_dwSoundSetup = GetPrivateProfileDWord("Sound Settings", "SoundSetup", SOUNDSETUP_SECONDARY, iniFile);
m_dwQuality = GetPrivateProfileDWord("Sound Settings", "Quality", 0, iniFile);
m_nSrcMode = GetPrivateProfileDWord("Sound Settings", "SrcMode", SRCMODE_POLYPHASE, iniFile);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|