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

23 lines
528 B
C#
Raw Normal View History

using System.Collections.Generic;
2025-01-02 17:55:16 +08:00
namespace Essgee.Emulation.Audio
{
public partial class CGBAudio : DMGAudio, IAudio
2025-01-02 17:55:16 +08:00
{
public CGBAudio()
{
channelSampleBuffer = new List<short>[numChannels];
for (int i = 0; i < numChannels; i++) channelSampleBuffer[i] = new List<short>();
mixedSampleBuffer = new List<short>();
channel1 = new Square(true);
channel2 = new Square(false);
channel3 = new CGBWave();
channel4 = new Noise();
samplesPerFrame = cyclesPerFrame = cyclesPerSample = -1;
}
}
}