fn reset(&mut self) {
        self.sound1 = RectangleWave::new();
        self.sound2 = RectangleWave::new();
        // Save the RAM contents
        self.sound3 = RamWave::with_ram(&self.sound3);
        self.sound4 = LfsrWave::new();

        self.so1 = SoundOutput::new();
        self.so2 = SoundOutput::new();
    }
/// Reinitialize the entire SPU to default values. The only
/// exception is the waveform RAM that remains untouched.
Reinitialize the entire SPU to default values. The only
exception is the waveform RAM that remains untouched.
Reinitialize the entire SPU to default values . The only exception is the waveform RAM that remains untouched .
fn reset(&mut self) {
        self.sound1 = RectangleWave::new();
        self.sound2 = RectangleWave::new();
        // Save the RAM contents
        self.sound3 = RamWave::with_ram(&self.sound3);
        self.sound4 = LfsrWave::new();
        self.so1 = SoundOutput::new();
        self.so2 = SoundOutput::new();
    }
fn reset ( & mut self ) { self . sound1 = RectangleWave :: new ( ) ; self . sound2 = RectangleWave :: new ( ) ; // Save the RAM contents self . sound3 = RamWave :: with_ram ( & self . sound3 ) ; self . sound4 = LfsrWave :: new ( ) ; self . so1 = SoundOutput :: new ( ) ; self . so2 = SoundOutput :: new ( ) ; }
Reinitialize the entire SPU to default values.
Reinitialize the entire SPU to default values .
&mut self
&mut self