rpcsx/rpcs3/Emu/Cell/lv2/sys_rsxaudio.cpp

40 lines
928 B
C++
Raw Normal View History

2020-12-05 13:08:24 +01:00
#include "stdafx.h"
2020-02-07 10:31:33 +01:00
#include "Emu/Memory/vm.h"
#include "Emu/Cell/ErrorCodes.h"
#include "sys_rsxaudio.h"
LOG_CHANNEL(sys_rsxaudio);
error_code sys_rsxaudio_initialize(vm::ptr<u32> handle)
{
2021-04-25 16:35:12 +02:00
// Creates a lv2 object for rsxaudio, returns handle
2020-02-07 10:31:33 +01:00
sys_rsxaudio.todo("sys_rsxaudio_initialize(handle=*0x%x)", handle);
2021-04-25 16:35:12 +02:00
*handle = 0xcacad0d0;
2020-02-07 10:31:33 +01:00
return CELL_OK;
}
error_code sys_rsxaudio_finalize(u32 handle)
{
sys_rsxaudio.todo("sys_rsxaudio_finalize(handle=0x%x)", handle);
return CELL_OK;
}
error_code sys_rsxaudio_import_shared_memory(u32 handle, vm::ptr<u64> addr)
{
sys_rsxaudio.todo("sys_rsxaudio_import_shared_memory(handle=0x%x, addr=*0x%x)", handle, addr);
2021-04-25 16:35:12 +02:00
*addr = vm::alloc(0x40000, vm::main);
2020-02-07 10:31:33 +01:00
return CELL_OK;
}
error_code sys_rsxaudio_unimport_shared_memory(u32 handle, vm::ptr<u64> addr)
{
sys_rsxaudio.todo("sys_rsxaudio_unimport_shared_memory(handle=0x%x, addr=*0x%x)", handle, addr);
return CELL_OK;
}