Example #1
0
        public IEnumerable <Device> GetSoundDevices()
        {
            MediaModule.linphone_core_reload_sound_devices(softphone.LinphoneWrapper.LinphoneCore);
            var soundDevsPtr = MediaModule.linphone_core_get_sound_devices(softphone.LinphoneWrapper.LinphoneCore);

            return(soundDevsPtr
                   .ToStringCollection()
                   .Select(device => new Device(device, IsAudioCaptureDevice(device) ? DeviceType.SoundCapture : DeviceType.Playback)));
        }