fixed crash if there are no mics
This commit is contained in:
1 parent
c3f7a09112
commit
0ac141684c
1 file changed
+9
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user