Exemplo n.º 1
0
 private void ReloadAPU()
 {
     _apu        = _gameboy.APU;
     _waveFormat = new WaveFormat(_apu.SampleRate,
                                  _apu.SampleSize * 8,
                                  _apu.NumChannels);
     _source   = new DirectStreamingSource(_waveFormat, _apu);
     _soundOut = GetSoundOut();
     _soundOut.Initialize(_source);
     _soundOut.Volume = 0.2f;
 }
Exemplo n.º 2
0
 private void ReloadAPU()
 {
     _apu = _gameboy.APU;
       _waveFormat = new WaveFormat(_apu.SampleRate,
                            _apu.SampleSize * 8,
                            _apu.NumChannels);
       _source = new DirectStreamingSource(_waveFormat, _apu);
       _soundOut = GetSoundOut();
       _soundOut.Initialize(_source);
       _soundOut.Volume = 0.2f;
 }