From 0e1a6d7e06f6ddd4b3e521bdcdc9ac3837d8a08d Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Sat, 10 Mar 2012 12:35:27 +0100 Subject: [PATCH] return null if there are no record devices in CPortAudioRecord.cs --- Vocaluxe/Lib/Sound/CPortAudioRecord.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Vocaluxe/Lib/Sound/CPortAudioRecord.cs b/Vocaluxe/Lib/Sound/CPortAudioRecord.cs index 04096ab9..87bff1ab 100644 --- a/Vocaluxe/Lib/Sound/CPortAudioRecord.cs +++ b/Vocaluxe/Lib/Sound/CPortAudioRecord.cs @@ -245,6 +245,9 @@ namespace Vocaluxe.Lib.Sound if (!_initialized) return null; + if (_Devices.Count == 0) + return null; + return _Devices.ToArray(); }