private void InitializeChannels() { pulseA = new PulseChannel(r.PulseA, clockSpeed, sampleRate); pulseB = new PulseChannel(r.PulseB, clockSpeed, sampleRate); triangle = new TriangleChannel(r.Triangle, clockSpeed, sampleRate); noise = new NoiseChannel(r.Noise, clockSpeed, sampleRate); modulation = new DeltaModulationChannel(r.Modulation, clockSpeed, sampleRate); }
public void Reset() { this.enabled = false; this.pulse1 = new PulseChannel(); this.pulse2 = new PulseChannel(); this.wave = new WaveChannel(); this.noise = new NoiseChannel(); this.clockMain = 0; this.clockEnvelope1 = 0; this.clockEnvelope2 = 0; }