/** Initialize sound emulation, and allocate sound hardware */ public SoundChip() { channel1 = new SquareWaveGenerator(sampleRate); //SquareWaveGenerator channel2 = new SquareWaveGenerator(sampleRate); //SquareWaveGenerator channel3 = new VoluntaryWaveGenerator(sampleRate); channel4 = new NoiseGenerator(sampleRate); }
/** Initialize sound emulation, and allocate sound hardware */ public SoundChip() { channel1 = new SquareWaveGenerator(sampleRate); channel2 = new SquareWaveGenerator(sampleRate); channel3 = new VoluntaryWaveGenerator(sampleRate); channel4 = new NoiseGenerator(sampleRate); }