mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 15:50:00 -06:00
basic provision for feeding external pictures to the cameras
This commit is contained in:
15
src/NDS.cpp
15
src/NDS.cpp
@ -1261,6 +1261,21 @@ void SetLidClosed(bool closed)
|
||||
}
|
||||
}
|
||||
|
||||
void CamInputFrame(int cam, u32* data, int width, int height)
|
||||
{
|
||||
// TODO: support things like the GBA-slot camera addon
|
||||
// whenever these are emulated
|
||||
|
||||
if (ConsoleType == 1)
|
||||
{
|
||||
switch (cam)
|
||||
{
|
||||
case 0: return DSi_CamModule::Camera0->InputFrame(data, width, height);
|
||||
case 1: return DSi_CamModule::Camera1->InputFrame(data, width, height);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void MicInputFrame(s16* data, int samples)
|
||||
{
|
||||
return SPI_TSC::MicInputFrame(data, samples);
|
||||
|
Reference in New Issue
Block a user