Revision: 2507 http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2507&view=rev Author: rorthomas Date: 2012-05-06 03:17:42 +0000 (Sun, 06 May 2012) Log Message: ----------- working, nearly :|
Modified Paths: -------------- trunk/source/main/audio/SoundManager.cpp Modified: trunk/source/main/audio/SoundManager.cpp =================================================================== --- trunk/source/main/audio/SoundManager.cpp 2012-05-06 03:14:49 UTC (rev 2506) +++ trunk/source/main/audio/SoundManager.cpp 2012-05-06 03:17:42 UTC (rev 2507) @@ -42,12 +42,14 @@ , m_sound_context(NULL) , m_sound_device(NULL) { - String sound_renderer = SSETTING("AudioDevice", "Default"); + String audio_device = SSETTING("AudioDevice", "Default"); - if (sound_renderer == "No sound") return; + if (audio_device == "No sound") return; - LOG("Opening Device: '" + sound_renderer + "'"); - m_sound_device = alcOpenDevice(sound_renderer.c_str()); + LOG("Opening Device: '" + audio_device + "'"); + + if(audio_device == "Default") audio_device = ""; + m_sound_device = alcOpenDevice(audio_device.c_str()); if (!m_sound_device) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Rigsofrods-devel mailing list Rigsofrods-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel