lol
This commit is contained in:
parent
53ebbcfbd9
commit
2bd767f672
3 changed files with 71 additions and 0 deletions
23
Ryujinx.HLE/OsHle/Services/Aud/AudioRendererConfig.cs
Normal file
23
Ryujinx.HLE/OsHle/Services/Aud/AudioRendererConfig.cs
Normal file
|
@ -0,0 +1,23 @@
|
|||
namespace Ryujinx.HLE.OsHle.Services.Aud
|
||||
{
|
||||
struct AudioRendererConfig
|
||||
{
|
||||
public int Revision;
|
||||
public int BehaviourSize;
|
||||
public int MemoryPoolsSize;
|
||||
public int VoicesSize;
|
||||
public int VoiceResourceSize;
|
||||
public int EffectsSize;
|
||||
public int MixesSize;
|
||||
public int SinksSize;
|
||||
public int PerformanceBufferSize;
|
||||
public int Padding0;
|
||||
public int Padding1;
|
||||
public int Padding2;
|
||||
public int Padding3;
|
||||
public int Padding4;
|
||||
public int Padding5;
|
||||
public int Padding6;
|
||||
public int TotalSize;
|
||||
}
|
||||
}
|
38
Ryujinx.HLE/OsHle/Services/Aud/AudioRendererResponse.cs
Normal file
38
Ryujinx.HLE/OsHle/Services/Aud/AudioRendererResponse.cs
Normal file
|
@ -0,0 +1,38 @@
|
|||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Ryujinx.HLE.OsHle.Services.Aud
|
||||
{
|
||||
struct AudioRendererResponse
|
||||
{
|
||||
public int Revision;
|
||||
public int ErrorInfoSize;
|
||||
public int MemoryPoolsSize;
|
||||
public int VoicesSize;
|
||||
public int Unknown10;
|
||||
public int EffectsSize;
|
||||
public int Unknown18;
|
||||
public int SinksSize;
|
||||
public int PerformanceManagerSize;
|
||||
public int Padding0;
|
||||
public int Padding1;
|
||||
public int Padding2;
|
||||
public int Padding3;
|
||||
public int Padding4;
|
||||
public int Padding5;
|
||||
public int Padding6;
|
||||
public int TotalSize;
|
||||
|
||||
AudioRendererResponse(AudioRendererConfig Config)
|
||||
{
|
||||
Revision = Config.Revision;
|
||||
ErrorInfoSize = 0xb0;
|
||||
MemoryPoolsSize = (Config.MemoryPoolsSize / 0x20) * 0x10;
|
||||
VoicesSize = (Config.VoicesSize / 0x170) * 0x10;
|
||||
EffectsSize = (Config.EffectsSize / 0xC0) * 0x10;
|
||||
SinksSize = (Config.SinksSize / 0x140) * 0x20;
|
||||
PerformanceManagerSize = 0x10;
|
||||
TotalSize = Marshal.SizeOf(AudioRendererResponse) + ErrorInfoSize + MemoryPoolsSize +
|
||||
VoicesSize + EffectsSize + SinksSize + PerformanceManagerSize;
|
||||
}
|
||||
}
|
||||
}
|
10
Ryujinx.HLE/OsHle/Services/Aud/MemoryPoolEntry.cs
Normal file
10
Ryujinx.HLE/OsHle/Services/Aud/MemoryPoolEntry.cs
Normal file
|
@ -0,0 +1,10 @@
|
|||
namespace Ryujinx.HLE.OsHle.Services.Aud
|
||||
{
|
||||
struct MemoryPoolEntry
|
||||
{
|
||||
public int State;
|
||||
public int Unk4;
|
||||
public int Unk8;
|
||||
public int UnkC;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue