2014-07-12 09:46:14 +02:00
|
|
|
#include "stdafx.h"
|
2014-10-18 20:22:52 +02:00
|
|
|
#include "Emu/Memory/Memory.h"
|
|
|
|
|
#include "Emu/System.h"
|
|
|
|
|
#include "Emu/SysCalls/Modules.h"
|
|
|
|
|
|
|
|
|
|
#include "cellMic.h"
|
|
|
|
|
|
2015-09-08 15:53:28 +02:00
|
|
|
extern Module<> cellMic;
|
2014-10-18 20:22:52 +02:00
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicInit()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2016-01-12 22:57:16 +01:00
|
|
|
cellMic.warning("cellMicInit()");
|
2014-10-18 20:22:52 +02:00
|
|
|
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicEnd()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2016-01-12 22:57:16 +01:00
|
|
|
cellMic.warning("cellMicEnd()");
|
2014-10-18 20:22:52 +02:00
|
|
|
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicOpen()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicClose()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicGetDeviceGUID()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicGetType()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicIsAttached()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicIsOpen()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicGetDeviceAttr()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicSetDeviceAttr()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicGetSignalAttr()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicSetSignalAttr()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicGetSignalState()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicStart()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicRead()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicStop()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicReset()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicSetNotifyEventQueue()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicSetNotifyEventQueue2()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicRemoveNotifyEventQueue()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicOpenEx()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicStartEx()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicGetFormatRaw()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicGetFormatAux()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicGetFormatDsp()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicOpenRaw()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicReadRaw()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicReadAux()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicReadDsp()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicGetStatus()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicStopEx()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-08-01 03:46:42 +02:00
|
|
|
throw EXCEPTION("Unexpected function");
|
2013-09-28 04:36:57 +02:00
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicSysShareClose()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicGetFormat()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicSetMultiMicNotifyEventQueue()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicGetFormatEx()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicSysShareStop()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicSysShareOpen()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicCommand()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicSysShareStart()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicSysShareInit()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicSysShareEnd()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 17:30:37 +02:00
|
|
|
s32 cellMicGetDeviceIdentifier()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMic);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-09-08 15:53:28 +02:00
|
|
|
Module<> cellMic("cellMic", []()
|
2015-02-18 17:22:06 +01:00
|
|
|
{
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(cellMic, cellMicInit);
|
|
|
|
|
REG_FUNC(cellMic, cellMicEnd);
|
|
|
|
|
REG_FUNC(cellMic, cellMicOpen);
|
|
|
|
|
REG_FUNC(cellMic, cellMicClose);
|
|
|
|
|
|
|
|
|
|
REG_FUNC(cellMic, cellMicGetDeviceGUID);
|
|
|
|
|
REG_FUNC(cellMic, cellMicGetType);
|
|
|
|
|
REG_FUNC(cellMic, cellMicIsAttached);
|
|
|
|
|
REG_FUNC(cellMic, cellMicIsOpen);
|
|
|
|
|
REG_FUNC(cellMic, cellMicGetDeviceAttr);
|
|
|
|
|
REG_FUNC(cellMic, cellMicSetDeviceAttr);
|
|
|
|
|
REG_FUNC(cellMic, cellMicGetSignalAttr);
|
|
|
|
|
REG_FUNC(cellMic, cellMicSetSignalAttr);
|
|
|
|
|
REG_FUNC(cellMic, cellMicGetSignalState);
|
|
|
|
|
|
|
|
|
|
REG_FUNC(cellMic, cellMicStart);
|
|
|
|
|
REG_FUNC(cellMic, cellMicRead);
|
|
|
|
|
REG_FUNC(cellMic, cellMicStop);
|
|
|
|
|
REG_FUNC(cellMic, cellMicReset);
|
|
|
|
|
|
|
|
|
|
REG_FUNC(cellMic, cellMicSetNotifyEventQueue);
|
|
|
|
|
REG_FUNC(cellMic, cellMicSetNotifyEventQueue2);
|
|
|
|
|
REG_FUNC(cellMic, cellMicRemoveNotifyEventQueue);
|
|
|
|
|
|
|
|
|
|
REG_FUNC(cellMic, cellMicOpenEx);
|
|
|
|
|
REG_FUNC(cellMic, cellMicStartEx);
|
|
|
|
|
REG_FUNC(cellMic, cellMicGetFormatRaw);
|
|
|
|
|
REG_FUNC(cellMic, cellMicGetFormatAux);
|
|
|
|
|
REG_FUNC(cellMic, cellMicGetFormatDsp);
|
|
|
|
|
REG_FUNC(cellMic, cellMicOpenRaw);
|
|
|
|
|
REG_FUNC(cellMic, cellMicReadRaw);
|
|
|
|
|
REG_FUNC(cellMic, cellMicReadAux);
|
|
|
|
|
REG_FUNC(cellMic, cellMicReadDsp);
|
|
|
|
|
|
|
|
|
|
REG_FUNC(cellMic, cellMicGetStatus);
|
2015-08-01 03:46:42 +02:00
|
|
|
REG_FUNC(cellMic, cellMicStopEx); // this function shouldn't exist
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(cellMic, cellMicSysShareClose);
|
|
|
|
|
REG_FUNC(cellMic, cellMicGetFormat);
|
|
|
|
|
REG_FUNC(cellMic, cellMicSetMultiMicNotifyEventQueue);
|
|
|
|
|
REG_FUNC(cellMic, cellMicGetFormatEx);
|
|
|
|
|
REG_FUNC(cellMic, cellMicSysShareStop);
|
|
|
|
|
REG_FUNC(cellMic, cellMicSysShareOpen);
|
|
|
|
|
REG_FUNC(cellMic, cellMicCommand);
|
|
|
|
|
REG_FUNC(cellMic, cellMicSysShareStart);
|
|
|
|
|
REG_FUNC(cellMic, cellMicSysShareInit);
|
|
|
|
|
REG_FUNC(cellMic, cellMicSysShareEnd);
|
|
|
|
|
REG_FUNC(cellMic, cellMicGetDeviceIdentifier);
|
2015-02-18 17:22:06 +01:00
|
|
|
});
|