Move stub mic implementation for not win32 platforms to a separate file.
This commit is contained in:
parent
fd52754682
commit
6340db8150
|
@ -45,7 +45,8 @@ libdesmume_a_SOURCES = \
|
|||
utils/decrypt/crc.cpp utils/decrypt/crc.h utils/decrypt/decrypt.cpp \
|
||||
utils/decrypt/decrypt.h utils/decrypt/header.cpp utils/decrypt/header.h \
|
||||
addons.c addons.h \
|
||||
addons/compactFlash.cpp addons/gbagame.cpp addons/none.cpp addons/rumblepak.cpp
|
||||
addons/compactFlash.cpp addons/gbagame.cpp addons/none.cpp addons/rumblepak.cpp \
|
||||
mic.cpp mic.h
|
||||
if HAVE_GDB_STUB
|
||||
libdesmume_a_SOURCES += gdbstub.h
|
||||
endif
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
#ifndef WIN32
|
||||
|
||||
#include "types.h"
|
||||
#include "mic.h"
|
||||
|
||||
BOOL Mic_Init()
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void Mic_Reset()
|
||||
{
|
||||
}
|
||||
|
||||
void Mic_DeInit()
|
||||
{
|
||||
}
|
||||
|
||||
u8 Mic_ReadSample() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
|
@ -1,21 +1,9 @@
|
|||
#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
|
||||
|
|
Loading…
Reference in New Issue