Author: derek Date: Wed Jan 31 17:50:16 2007 New Revision: 238 Modified: sofaswitch/trunk/sound/main.cxx Log: Remove test on the sound device being opened or not. This test does not appear to give a valid result. Modified: sofaswitch/trunk/sound/main.cxx ============================================================================== --- sofaswitch/trunk/sound/main.cxx (original) +++ sofaswitch/trunk/sound/main.cxx Wed Jan 31 17:50:16 2007 @@ -330,16 +330,17 @@ return FALSE; } +#if 0 if (!sound.IsOpen()) { PTRACE(3, "just opened the device, but it is not open "); return FALSE; } - +#endif PINDEX currentVolume = 90; sound.SetVolume(currentVolume); sound.SetBuffers(480, 2); - +#if 0 if (sound.IsOpen()) { PTRACE(3, "End of OpenAudio, sound device is opened just fine"); return TRUE; @@ -347,6 +348,8 @@ PTRACE(3, "End of OpenAudio, but the sound device is closed"); return FALSE; } +#endif + return TRUE; } ////////////////////////////////////////////////////////////////////////////////