PANDORA: No mic on Pandora for now

This commit is contained in:
ptitSeb 2014-02-28 23:46:08 +01:00
parent c806c30937
commit 1c813524b4
2 changed files with 13 additions and 2 deletions

View File

@ -4,8 +4,13 @@
#include "maple_devs.h"
#include "maple_cfg.h"
#include <time.h>
#ifdef TARGET_PANDORA
#define LOGI printf
#define LOGW printf
#else
#include <android/log.h>
#include <jni.h>
#endif
#include "deps/zlib/zlib.h"
@ -541,7 +546,9 @@ struct maple_sega_vmu: maple_base
}
}
config->SetImage(lcd_data_decoded);
#ifndef TARGET_PANDORA
push_vmu_screen(lcd_data_decoded);
#endif
#if 0
// Update LCD window
if (!dev->lcd.visible)
@ -793,11 +800,13 @@ struct maple_microphone: maple_base
w8(0x04);//status (just the bit for recording)
w8(0x0f);//gain (default)
w8(0);//exp ?
#ifndef TARGET_PANDORA
if(get_mic_data(micdata)){
w8(240);//ct (240 samples)
wptr(micdata, SIZE_OF_MIC_DATA);
}else{
}else
#endif
{
w8(0);
}

2
core/hw/maple/maple_devs.h Normal file → Executable file
View File

@ -30,5 +30,7 @@ struct maple_device
maple_device* maple_Create(MapleDeviceType type);
#define SIZE_OF_MIC_DATA 480 //ALSO DEFINED IN SipEmulator.java
#ifndef TARGET_PANDORA
int get_mic_data(u8* buffer); //implemented in Android.cpp
int push_vmu_screen(u8* buffer); //implemented in Android.cpp
#endif