AxibugEmuOnline/AxibugEmuOnline.Client/Assets/VirtualNes.Core/State/SNDSTAT.cs
2024-09-13 17:39:48 +08:00

34 lines
736 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VirtualNes.Core
{
public struct SNDSTAT : IStateBufferObject
{
public byte[] snddata;
public static SNDSTAT GetDefault()
{
return new SNDSTAT() { snddata = new byte[0x800] };
}
public readonly uint GetSize()
{
return (uint)snddata.Length;
}
public readonly void SaveState(StateBuffer buffer)
{
buffer.Write(snddata);
}
public void LoadState(StateReader buffer)
{
snddata = buffer.Read_bytes(0x800);
}
}
}