PANDORA: No mic on Pandora for now

This commit is contained in:
ptitSeb 2014-02-28 23:46:08 +01:00
parent b0c222bdd6
commit b66de11664
2 changed files with 8 additions and 2 deletions

View File

@ -547,7 +547,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)
@ -799,11 +801,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