Move stub mic implementation for not win32 platforms to a separate file.

This commit is contained in:
riccardom 2009-01-12 20:48:31 +00:00
parent fd52754682
commit 6340db8150
3 changed files with 25 additions and 13 deletions

View File

@ -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

23
desmume/src/mic.cpp Normal file
View File

@ -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

View File

@ -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