public void Reset() { this.enabled = false; this.pulse1 = new PulseChannel(); this.pulse2 = new PulseChannel(); this.wave = new WaveChannel(); this.noise = new NoiseChannel(); this.clockMain = 0; this.clockEnvelope1 = 0; this.clockEnvelope2 = 0; }
private void initializeAPU() { GameObject gb = GameObject.Find("GameBoyCamera"); gb.AddComponent(typeof(AudioListener)); gb.AddComponent(typeof(AudioSource)); AudioClip myClip = AudioClip.Create("GameBoyAudio", sample, channels, freq, false); audio = gb.GetComponent <AudioSource>(); audio.clip = myClip; squareOne = new SquareChannel(); squareTwo = new SquareChannel(); waveChannel = new WaveChannel(); noiseChannel = new NoiseChannel(); }
public WAVE_RAM(WaveChannel Master, int index) { this.Master = Master; this.index = index; }
public WaveCNT_X(WaveChannel Master) { this.Master = Master; }