mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
finalize microphone code (hooked to all settings etc)
also add volume setting
This commit is contained in:
@ -504,6 +504,12 @@ void SetTouchCoords(u16 x, u16 y)
|
||||
|
||||
void MicInputFrame(s16* data, int samples)
|
||||
{
|
||||
if (!data)
|
||||
{
|
||||
MicBufferLen = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
if (samples > 1024) samples = 1024;
|
||||
memcpy(MicBuffer, data, samples*sizeof(s16));
|
||||
MicBufferLen = samples;
|
||||
|
Reference in New Issue
Block a user