mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +12:00
273 lines
5.4 KiB
C++
273 lines
5.4 KiB
C++
#include "stdafx.h"
|
|
#include "Emu/Memory/Memory.h"
|
|
#include "Emu/System.h"
|
|
#include "Emu/SysCalls/Modules.h"
|
|
|
|
namespace vm { using namespace ps3; }
|
|
|
|
extern Module cellVoice;
|
|
|
|
// Error Codes
|
|
enum
|
|
{
|
|
CELL_VOICE_ERROR_ADDRESS_INVALID = 0x8031080a,
|
|
CELL_VOICE_ERROR_ARGUMENT_INVALID = 0x80310805,
|
|
CELL_VOICE_ERROR_CONTAINER_INVALID = 0x80310806,
|
|
CELL_VOICE_ERROR_DEVICE_NOT_PRESENT = 0x80310812,
|
|
CELL_VOICE_ERROR_EVENT_DISPATCH = 0x80310811,
|
|
CELL_VOICE_ERROR_EVENT_QUEUE = 0x8031080f,
|
|
CELL_VOICE_ERROR_GENERAL = 0x80310803,
|
|
CELL_VOICE_ERROR_LIBVOICE_INITIALIZED = 0x80310802,
|
|
CELL_VOICE_ERROR_LIBVOICE_NOT_INIT = 0x80310801,
|
|
CELL_VOICE_ERROR_NOT_IMPLEMENTED = 0x80310809,
|
|
CELL_VOICE_ERROR_PORT_INVALID = 0x80310804,
|
|
CELL_VOICE_ERROR_RESOURCE_INSUFFICIENT = 0x80310808,
|
|
CELL_VOICE_ERROR_SERVICE_ATTACHED = 0x8031080c,
|
|
CELL_VOICE_ERROR_SERVICE_DETACHED = 0x8031080b,
|
|
CELL_VOICE_ERROR_SERVICE_HANDLE = 0x80310810,
|
|
CELL_VOICE_ERROR_SERVICE_NOT_FOUND = 0x8031080d,
|
|
CELL_VOICE_ERROR_SHAREDMEMORY = 0x8031080e,
|
|
CELL_VOICE_ERROR_TOPOLOGY = 0x80310807,
|
|
};
|
|
|
|
s32 cellVoiceConnectIPortToOPort()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceCreateNotifyEventQueue()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceCreatePort()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceDeletePort()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceDisconnectIPortFromOPort()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceEnd()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceGetBitRate()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceGetMuteFlag()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceGetPortAttr()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceGetPortInfo()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceGetSignalState()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceGetVolume()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceInit()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceInitEx()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoicePausePort()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoicePausePortAll()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceRemoveNotifyEventQueue()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceResetPort()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceResumePort()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceResumePortAll()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceSetBitRate()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceSetMuteFlag()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceSetMuteFlagAll()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceSetNotifyEventQueue()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceSetPortAttr()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceSetVolume()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceStart()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceStartEx()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceStop()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceUpdatePort()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceWriteToIPort()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceWriteToIPortEx()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceReadFromOPort()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
s32 cellVoiceDebugTopology()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellVoice);
|
|
return CELL_OK;
|
|
}
|
|
|
|
Module cellVoice("cellVoice", []()
|
|
{
|
|
REG_FUNC(cellVoice, cellVoiceConnectIPortToOPort);
|
|
REG_FUNC(cellVoice, cellVoiceCreateNotifyEventQueue);
|
|
REG_FUNC(cellVoice, cellVoiceCreatePort);
|
|
REG_FUNC(cellVoice, cellVoiceDeletePort);
|
|
REG_FUNC(cellVoice, cellVoiceDisconnectIPortFromOPort);
|
|
REG_FUNC(cellVoice, cellVoiceEnd);
|
|
REG_FUNC(cellVoice, cellVoiceGetBitRate);
|
|
REG_FUNC(cellVoice, cellVoiceGetMuteFlag);
|
|
REG_FUNC(cellVoice, cellVoiceGetPortAttr);
|
|
REG_FUNC(cellVoice, cellVoiceGetPortInfo);
|
|
REG_FUNC(cellVoice, cellVoiceGetSignalState);
|
|
REG_FUNC(cellVoice, cellVoiceGetVolume);
|
|
REG_FUNC(cellVoice, cellVoiceInit);
|
|
REG_FUNC(cellVoice, cellVoiceInitEx);
|
|
REG_FUNC(cellVoice, cellVoicePausePort);
|
|
REG_FUNC(cellVoice, cellVoicePausePortAll);
|
|
REG_FUNC(cellVoice, cellVoiceRemoveNotifyEventQueue);
|
|
REG_FUNC(cellVoice, cellVoiceResetPort);
|
|
REG_FUNC(cellVoice, cellVoiceResumePort);
|
|
REG_FUNC(cellVoice, cellVoiceResumePortAll);
|
|
REG_FUNC(cellVoice, cellVoiceSetBitRate);
|
|
REG_FUNC(cellVoice, cellVoiceSetMuteFlag);
|
|
REG_FUNC(cellVoice, cellVoiceSetMuteFlagAll);
|
|
REG_FUNC(cellVoice, cellVoiceSetNotifyEventQueue);
|
|
REG_FUNC(cellVoice, cellVoiceSetPortAttr);
|
|
REG_FUNC(cellVoice, cellVoiceSetVolume);
|
|
REG_FUNC(cellVoice, cellVoiceStart);
|
|
REG_FUNC(cellVoice, cellVoiceStartEx);
|
|
REG_FUNC(cellVoice, cellVoiceStop);
|
|
REG_FUNC(cellVoice, cellVoiceUpdatePort);
|
|
REG_FUNC(cellVoice, cellVoiceWriteToIPort);
|
|
REG_FUNC(cellVoice, cellVoiceWriteToIPortEx);
|
|
REG_FUNC(cellVoice, cellVoiceReadFromOPort);
|
|
REG_FUNC(cellVoice, cellVoiceDebugTopology);
|
|
});
|