27 lines
607 B
C#
27 lines
607 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 : DMGAudio, IAudio
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|