mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 21:31:00 -06:00
prevent crash if mic init fails
This commit is contained in:
@ -318,6 +318,7 @@ void FeedMicInput()
|
|||||||
{
|
{
|
||||||
int type = Config::MicInputType;
|
int type = Config::MicInputType;
|
||||||
if ((type != 1 && MicCommand == 0) ||
|
if ((type != 1 && MicCommand == 0) ||
|
||||||
|
(type == 1 && MicBufferLength == 0) ||
|
||||||
(type == 3 && MicWavBuffer == NULL))
|
(type == 3 && MicWavBuffer == NULL))
|
||||||
{
|
{
|
||||||
type = 0;
|
type = 0;
|
||||||
|
Reference in New Issue
Block a user