src/apu/apu.cc
/*
 * Creates an APU object. The object will not be in a valid state until
 * Connect() has been called.
 */
Creates an APU object. The object will not be in a valid state until
Connect() has been called.
Creates an APU object . The object will not be in a valid state until Connect () has been called .
Apu::Apu(void) {
  pulse_a_ = new ApuPulse();
  pulse_b_ = new ApuPulse();
  triangle_ = new ApuTriangle();
  noise_ = new ApuNoise();
  dmc_ = new ApuDmc();
  noise_->shift = 1;
  return;
}
Apu :: Apu ( void ) { pulse_a_ = new ApuPulse ( ) ; pulse_b_ = new ApuPulse ( ) ; triangle_ = new ApuTriangle ( ) ; noise_ = new ApuNoise ( ) ; dmc_ = new ApuDmc ( ) ; noise_ -> shift = 1 ; return ; }
Creates an APU object.
Creates an APU object .
// Allocate the channels of the APU. // On power-up, the noise shifter is seeded with the value 1.