Essgee.Unity/Assets/Plugins/Essgee/Emulation/Audio/CGBAudio.Wave.cs

26 lines
442 B
C#
Raw Normal View History

2025-01-02 17:55:16 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Essgee.Emulation.Audio
{
public partial class CGBAudio
{
public class CGBWave : Wave, IDMGAudioChannel
{
public override void Reset()
{
base.Reset();
for (var i = 0; i < sampleBuffer.Length; i += 2)
{
sampleBuffer[i + 0] = 0x00;
sampleBuffer[i + 1] = 0xFF;
}
}
}
}
}