26 lines
442 B
C#
26 lines
442 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|