using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Essgee.Emulation.Audio { public partial class CGBAudio : DMGAudio, IAudio { public CGBAudio() { channelSampleBuffer = new List[numChannels]; for (int i = 0; i < numChannels; i++) channelSampleBuffer[i] = new List(); mixedSampleBuffer = new List(); channel1 = new Square(true); channel2 = new Square(false); channel3 = new CGBWave(); channel4 = new Noise(); samplesPerFrame = cyclesPerFrame = cyclesPerSample = -1; } } }