2014-04-03 13:01:14 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
2018-09-26 00:14:10 +02:00
|
|
|
#include "Emu/Memory/vm_ptr.h"
|
2016-08-19 23:14:10 +02:00
|
|
|
|
2015-07-31 20:48:45 +02:00
|
|
|
// Error Codes
|
2014-04-03 13:01:14 +02:00
|
|
|
enum
|
|
|
|
|
{
|
|
|
|
|
CELL_SND3_ERROR_PARAM = 0x80310301,
|
|
|
|
|
CELL_SND3_ERROR_CREATE_MUTEX = 0x80310302,
|
|
|
|
|
CELL_SND3_ERROR_SYNTH = 0x80310303,
|
|
|
|
|
CELL_SND3_ERROR_ALREADY = 0x80310304,
|
|
|
|
|
CELL_SND3_ERROR_NOTINIT = 0x80310305,
|
|
|
|
|
CELL_SND3_ERROR_SMFFULL = 0x80310306,
|
|
|
|
|
CELL_SND3_ERROR_HD3ID = 0x80310307,
|
|
|
|
|
CELL_SND3_ERROR_SMF = 0x80310308,
|
|
|
|
|
CELL_SND3_ERROR_SMFCTX = 0x80310309,
|
|
|
|
|
CELL_SND3_ERROR_FORMAT = 0x8031030a,
|
|
|
|
|
CELL_SND3_ERROR_SMFID = 0x8031030b,
|
|
|
|
|
CELL_SND3_ERROR_SOUNDDATAFULL = 0x8031030c,
|
|
|
|
|
CELL_SND3_ERROR_VOICENUM = 0x8031030d,
|
|
|
|
|
CELL_SND3_ERROR_RESERVEDVOICE = 0x8031030e,
|
|
|
|
|
CELL_SND3_ERROR_REQUESTQUEFULL = 0x8031030f,
|
|
|
|
|
CELL_SND3_ERROR_OUTPUTMODE = 0x80310310,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct CellSnd3KeyOnParam
|
|
|
|
|
{
|
|
|
|
|
u8 vel;
|
|
|
|
|
u8 pan;
|
|
|
|
|
u8 panEx;
|
|
|
|
|
be_t<s32> addPitch;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct CellSnd3VoiceBitCtx
|
|
|
|
|
{
|
2015-07-31 20:48:45 +02:00
|
|
|
be_t<u32> core[4];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct CellSnd3DataCtx
|
|
|
|
|
{
|
|
|
|
|
s8 system[32];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct CellSnd3SmfCtx
|
|
|
|
|
{
|
|
|
|
|
s8 system[352];
|
2014-04-03 13:01:14 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct CellSnd3RequestQueueCtx
|
|
|
|
|
{
|
2015-07-31 20:48:45 +02:00
|
|
|
vm::bptr<void> frontQueue;
|
2014-04-03 13:01:14 +02:00
|
|
|
be_t<u32> frontQueueSize;
|
2015-07-31 20:48:45 +02:00
|
|
|
vm::bptr<void> rearQueue;
|
2014-04-03 13:01:14 +02:00
|
|
|
be_t<u32> rearQueueSize;
|
2014-06-02 19:27:24 +02:00
|
|
|
};
|