예제 #1
0
 private bool initSoundSystem()
 {
     if (voipclient.LaunchSoundSystem(kiSoundsystem, kiInputDeviceId, kiOutputDeviceId, 32000, 5))
     {
         textBoxLog.Text += "Sound system launched\n";
         updateButtonStates();
         timer1.Start();
         return(true);
     }
     else
     {
         textBoxLog.Text += "Failed to initialize sound system.\n";
         return(false);
     }
 }
예제 #2
0
        private bool initSoundSystem()
        {
            int iInputDeviceCount = m_voipclient.GetInputDeviceCount(kiSoundsystem);
            int iInputDeviceID    = m_voipclient.GetInputDeviceID(kiSoundsystem, iInputDeviceCount - 1);

            if (m_voipclient.LaunchSoundSystem(kiSoundsystem, iInputDeviceID, kiOutputDeviceId, 32000, 5))
            {
                logDebugOnly("Sound system launched\n");
                updateButtonStates();
                m_timer1.Start();
                return(true);
            }
            else
            {
                logDebugOnly("Sound system failed to launched\n");
                return(false);
            }
        }