prevent crash if mic init fails
This commit is contained in:
parent
3f26fbddc0
commit
a99ebf38db
|
@ -318,6 +318,7 @@ void FeedMicInput()
|
|||
{
|
||||
int type = Config::MicInputType;
|
||||
if ((type != 1 && MicCommand == 0) ||
|
||||
(type == 1 && MicBufferLength == 0) ||
|
||||
(type == 3 && MicWavBuffer == NULL))
|
||||
{
|
||||
type = 0;
|
||||
|
|
Loading…
Reference in New Issue