Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 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();
    }
Ejemplo n.º 3
0
 public WAVE_RAM(WaveChannel Master, int index)
 {
     this.Master = Master;
     this.index  = index;
 }
Ejemplo n.º 4
0
 public WaveCNT_X(WaveChannel Master)
 {
     this.Master = Master;
 }