Surprise! Added support for microphone emulation, but only for Win32.

There are 3 problems : 
1. the sound crackles a bit
2. the microphone amplifier isn't supported
3. the emu freezes if you don't close it by the console
This commit is contained in:
luigi__ 2009-01-12 16:17:18 +00:00
parent 0fa4b42eb4
commit a28d6c1d23
1 changed files with 21 additions and 0 deletions

21
desmume/src/mic.h Normal file
View File

@ -0,0 +1,21 @@
#ifndef MIC_H
#define MIC_H
#ifdef WIN32
BOOL Mic_Init();
void Mic_Reset();
void Mic_DeInit();
u8 Mic_ReadSample();
#else
/* TODO : mic support for other platforms */
BOOL Mic_Init() { return TRUE; }
void Mic_Reset() { }
void Mic_DeInit() { }
u8 Mic_ReadSample() { return 0; }
#endif
#endif