rpcsx/rpcs3/Emu/Cell/Modules/cellRemotePlay.cpp

87 lines
2 KiB
C++
Raw Normal View History

#include "stdafx.h"
2016-03-21 20:43:03 +01:00
#include "Emu/Cell/PPUModule.h"
#include "cellRemotePlay.h"
2015-07-31 00:53:52 +02:00
LOG_CHANNEL(cellRemotePlay);
2015-07-31 00:53:52 +02:00
template <>
void fmt_class_string<CellRemotePlayError>::format(std::string& out, u64 arg)
{
format_enum(out, arg, [](CellRemotePlayError value)
{
switch (value)
{
STR_CASE(CELL_REMOTEPLAY_ERROR_INTERNAL);
}
return unknown;
});
}
error_code cellRemotePlayGetStatus()
2015-07-31 00:53:52 +02:00
{
cellRemotePlay.todo("cellRemotePlayGetStatus()");
return CELL_OK;
2015-07-31 00:53:52 +02:00
}
error_code cellRemotePlaySetComparativeVolume(f32 comparativeAudioVolume)
2015-07-31 00:53:52 +02:00
{
cellRemotePlay.todo("cellRemotePlaySetComparativeVolume(comparativeAudioVolume=%f)", comparativeAudioVolume);
return CELL_OK;
2015-07-31 00:53:52 +02:00
}
error_code cellRemotePlayGetPeerInfo()
2015-07-31 00:53:52 +02:00
{
cellRemotePlay.todo("cellRemotePlayGetPeerInfo()");
return CELL_OK;
2015-07-31 00:53:52 +02:00
}
error_code cellRemotePlayGetSharedMemory()
2015-07-31 00:53:52 +02:00
{
cellRemotePlay.todo("cellRemotePlayGetSharedMemory()");
return CELL_OK;
2015-07-31 00:53:52 +02:00
}
error_code cellRemotePlayEncryptAllData()
2015-07-31 00:53:52 +02:00
{
cellRemotePlay.todo("cellRemotePlayEncryptAllData()");
return CELL_OK;
2015-07-31 00:53:52 +02:00
}
error_code cellRemotePlayStopPeerVideoOut()
2015-07-31 00:53:52 +02:00
{
cellRemotePlay.todo("cellRemotePlayStopPeerVideoOut()");
return CELL_OK;
2015-07-31 00:53:52 +02:00
}
error_code cellRemotePlayGetComparativeVolume(vm::ptr<f32> pComparativeAudioVolume)
2015-07-31 00:53:52 +02:00
{
cellRemotePlay.todo("cellRemotePlayGetComparativeVolume(pComparativeAudioVolume=*0x%x)", pComparativeAudioVolume);
if (pComparativeAudioVolume)
{
*pComparativeAudioVolume = 1.f;
}
return CELL_OK;
2015-07-31 00:53:52 +02:00
}
error_code cellRemotePlayBreak()
2015-07-31 00:53:52 +02:00
{
cellRemotePlay.todo("cellRemotePlayBreak()");
return CELL_OK;
2015-07-31 00:53:52 +02:00
}
2016-03-21 20:43:03 +01:00
DECLARE(ppu_module_manager::cellRemotePlay)("cellRemotePlay", []()
2015-07-31 00:53:52 +02:00
{
REG_FUNC(cellRemotePlay, cellRemotePlayGetStatus);
REG_FUNC(cellRemotePlay, cellRemotePlaySetComparativeVolume);
REG_FUNC(cellRemotePlay, cellRemotePlayGetPeerInfo);
REG_FUNC(cellRemotePlay, cellRemotePlayGetSharedMemory);
REG_FUNC(cellRemotePlay, cellRemotePlayEncryptAllData);
REG_FUNC(cellRemotePlay, cellRemotePlayStopPeerVideoOut);
REG_FUNC(cellRemotePlay, cellRemotePlayGetComparativeVolume);
REG_FUNC(cellRemotePlay, cellRemotePlayBreak);
});