public override void Config(Channel ch) { SquareChannel sch = ch as SquareChannel; freq = sch.freq; amp = sch.amp; step = sch.step; }
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 SquareCNT_X(SquareChannel Master) { this.Master = Master; }