/** 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); }