/** 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);
 }
예제 #2
0
 /** 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);
 }