2024-12-17 01:30:13 +08:00
|
|
|
|
namespace VirtualNes.Core
|
|
|
|
|
{
|
|
|
|
|
public struct SNDSTAT : IStateBufferObject
|
|
|
|
|
{
|
|
|
|
|
public byte[] snddata;
|
|
|
|
|
|
|
|
|
|
public static SNDSTAT GetDefault()
|
|
|
|
|
{
|
|
|
|
|
return new SNDSTAT() { snddata = new byte[0x800] };
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 17:24:09 +08:00
|
|
|
|
public uint GetSize()
|
2024-12-17 01:30:13 +08:00
|
|
|
|
{
|
|
|
|
|
return (uint)snddata.Length;
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 17:24:09 +08:00
|
|
|
|
public void SaveState(StateBuffer buffer)
|
2024-12-17 01:30:13 +08:00
|
|
|
|
{
|
|
|
|
|
buffer.Write(snddata);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void LoadState(StateReader buffer)
|
|
|
|
|
{
|
|
|
|
|
snddata = buffer.Read_bytes(0x800);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|