2014-03-06 12:40:50 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
2014-03-26 23:45:58 +01:00
|
|
|
enum
|
|
|
|
|
{
|
|
|
|
|
//libmixer Error Codes
|
|
|
|
|
CELL_LIBMIXER_ERROR_NOT_INITIALIZED = 0x80310002,
|
|
|
|
|
CELL_LIBMIXER_ERROR_INVALID_PARAMATER = 0x80310003,
|
|
|
|
|
CELL_LIBMIXER_ERROR_NO_MEMORY = 0x80310005,
|
|
|
|
|
CELL_LIBMIXER_ERROR_ALREADY_EXIST = 0x80310006,
|
|
|
|
|
CELL_LIBMIXER_ERROR_FULL = 0x80310007,
|
|
|
|
|
CELL_LIBMIXER_ERROR_NOT_EXIST = 0x80310008,
|
|
|
|
|
CELL_LIBMIXER_ERROR_TYPE_MISMATCH = 0x80310009,
|
|
|
|
|
CELL_LIBMIXER_ERROR_NOT_FOUND = 0x8031000a,
|
|
|
|
|
};
|
2014-03-06 12:40:50 +01:00
|
|
|
|
2014-03-30 13:59:55 +02:00
|
|
|
typedef int (*CellSurMixerNotifyCallbackFunction)(void *arg, u32 counter, u32 samples);
|
2014-03-06 12:40:50 +01:00
|
|
|
|
|
|
|
|
struct CellSSPlayerConfig
|
|
|
|
|
{
|
|
|
|
|
be_t<u32> channels;
|
|
|
|
|
be_t<u32> outputMode;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct CellSSPlayerWaveParam
|
|
|
|
|
{
|
|
|
|
|
void *addr;
|
|
|
|
|
be_t<s32> format;
|
|
|
|
|
be_t<u32> samples;
|
|
|
|
|
be_t<u32> loopStartOffset;
|
|
|
|
|
be_t<u32> startOffset;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct CellSSPlayerCommonParam
|
|
|
|
|
{
|
|
|
|
|
be_t<u32> loopMode;
|
|
|
|
|
be_t<u32> attackMode;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct CellSurMixerPosition
|
|
|
|
|
{
|
|
|
|
|
be_t<float> x;
|
|
|
|
|
be_t<float> y;
|
|
|
|
|
be_t<float> z;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct CellSSPlayerRuntimeInfo
|
|
|
|
|
{
|
|
|
|
|
be_t<float> level;
|
|
|
|
|
be_t<float> speed;
|
|
|
|
|
CellSurMixerPosition position;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct CellSurMixerConfig
|
|
|
|
|
{
|
|
|
|
|
be_t<s32> priority;
|
|
|
|
|
be_t<u32> chStrips1;
|
|
|
|
|
be_t<u32> chStrips2;
|
|
|
|
|
be_t<u32> chStrips6;
|
|
|
|
|
be_t<u32> chStrips8;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct CellSurMixerChStripParam
|
|
|
|
|
{
|
|
|
|
|
be_t<u32> param;
|
|
|
|
|
void *attribute;
|
|
|
|
|
be_t<s32> dBSwitch;
|
|
|
|
|
be_t<float> floatVal;
|
|
|
|
|
be_t<s32> intVal;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
CellSSPlayerWaveParam current_SSPlayerWaveParam;
|