fixed crash if there are no mics

This commit is contained in:
Alexander Eckart committed 2012-04-28 19:14:37 +02:00
1 parent c3f7a09112
commit 0ac141684c
1 file changed
+9
+9
View File
@@ -103,6 +103,15 @@ namespace Vocaluxe.Lib.Sound
if (!_initialized)
return false;
if (DeviceConfig == null)
return false;
if (_recHandle == null)
return false;
if (_recHandle.Length == 0)
return false;
for (int i = 0; i < _Buffer.Length; i++)
{
_Buffer[i].Reset();