2014-07-12 09:46:14 +02:00
|
|
|
#include "stdafx.h"
|
2016-03-21 20:43:03 +01:00
|
|
|
#include "Emu/Cell/PPUModule.h"
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2018-02-09 15:49:37 +01:00
|
|
|
|
2017-05-15 13:58:32 +02:00
|
|
|
|
2017-05-13 20:30:37 +02:00
|
|
|
logs::channel cellMusicDecode("cellMusicDecode");
|
2013-09-28 04:36:57 +02:00
|
|
|
|
|
|
|
|
// Return Codes
|
|
|
|
|
enum
|
|
|
|
|
{
|
2014-04-04 15:25:38 +02:00
|
|
|
CELL_MUSIC_DECODE_DECODE_FINISHED = 0x8002C101,
|
|
|
|
|
CELL_MUSIC_DECODE_ERROR_PARAM = 0x8002C102,
|
|
|
|
|
CELL_MUSIC_DECODE_ERROR_BUSY = 0x8002C103,
|
|
|
|
|
CELL_MUSIC_DECODE_ERROR_NO_ACTIVE_CONTENT = 0x8002C104,
|
|
|
|
|
CELL_MUSIC_DECODE_ERROR_NO_MATCH_FOUND = 0x8002C105,
|
|
|
|
|
CELL_MUSIC_DECODE_ERROR_INVALID_CONTEXT = 0x8002C106,
|
|
|
|
|
CELL_MUSIC_DECODE_ERROR_DECODE_FAILURE = 0x8002C107,
|
|
|
|
|
CELL_MUSIC_DECODE_ERROR_NO_MORE_CONTENT = 0x8002C108,
|
|
|
|
|
CELL_MUSIC_DECODE_DIALOG_OPEN = 0x8002C109,
|
|
|
|
|
CELL_MUSIC_DECODE_DIALOG_CLOSE = 0x8002C10A,
|
|
|
|
|
CELL_MUSIC_DECODE_ERROR_NO_LPCM_DATA = 0x8002C10B,
|
|
|
|
|
CELL_MUSIC_DECODE_NEXT_CONTENTS_READY = 0x8002C10C,
|
|
|
|
|
CELL_MUSIC_DECODE_ERROR_GENERIC = 0x8002C1FF,
|
2013-09-28 04:36:57 +02:00
|
|
|
};
|
|
|
|
|
|
2015-07-30 02:10:36 +02:00
|
|
|
s32 cellMusicDecodeInitialize()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 02:10:36 +02:00
|
|
|
s32 cellMusicDecodeInitializeSystemWorkload()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 02:10:36 +02:00
|
|
|
s32 cellMusicDecodeFinalize()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 02:10:36 +02:00
|
|
|
s32 cellMusicDecodeSelectContents()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 02:10:36 +02:00
|
|
|
s32 cellMusicDecodeSetDecodeCommand()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 02:10:36 +02:00
|
|
|
s32 cellMusicDecodeGetDecodeStatus()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 02:10:36 +02:00
|
|
|
s32 cellMusicDecodeRead()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 02:10:36 +02:00
|
|
|
s32 cellMusicDecodeGetSelectionContext()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 02:10:36 +02:00
|
|
|
s32 cellMusicDecodeSetSelectionContext()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 02:10:36 +02:00
|
|
|
s32 cellMusicDecodeGetContentsId()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 02:10:36 +02:00
|
|
|
s32 cellMusicDecodeInitialize2()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellMusicDecodeInitialize2SystemWorkload()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellMusicDecodeFinalize2()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellMusicDecodeSelectContents2()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellMusicDecodeSetDecodeCommand2()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellMusicDecodeGetDecodeStatus2()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellMusicDecodeRead2()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellMusicDecodeGetSelectionContext2()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellMusicDecodeSetSelectionContext2()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellMusicDecodeGetContentsId2()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellMusicDecode);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2016-03-21 20:43:03 +01:00
|
|
|
DECLARE(ppu_module_manager::cellMusicDecode)("cellMusicDecodeUtility", []()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2016-03-21 20:43:03 +01:00
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeInitialize);
|
|
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeInitializeSystemWorkload);
|
|
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeFinalize);
|
|
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeSelectContents);
|
|
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeSetDecodeCommand);
|
|
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeGetDecodeStatus);
|
|
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeRead);
|
|
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeGetSelectionContext);
|
|
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeSetSelectionContext);
|
|
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeGetContentsId);
|
2015-07-30 02:10:36 +02:00
|
|
|
|
2016-03-21 20:43:03 +01:00
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeInitialize2);
|
|
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeInitialize2SystemWorkload);
|
|
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeFinalize2);
|
|
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeSelectContents2);
|
|
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeSetDecodeCommand2);
|
|
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeGetDecodeStatus2);
|
|
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeRead2);
|
|
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeGetSelectionContext2);
|
|
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeSetSelectionContext2);
|
|
|
|
|
REG_FUNC(cellMusicDecodeUtility, cellMusicDecodeGetContentsId2);
|
2015-07-30 02:10:36 +02:00
|
|
|
});
|