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

27 lines
607 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 : 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;
}
}
}