示例#1
0
            public override void Config(Channel ch)
            {
                SquareChannel sch = ch as SquareChannel;

                freq = sch.freq;
                amp  = sch.amp;
                step = sch.step;
            }
示例#2
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();
    }
示例#3
0
 public SquareCNT_X(SquareChannel Master)
 {
     this.Master = Master;
 }