예제 #1
0
 public void SetAsyncInputPin(ISoundProvider source)
 {
     if (_syncSoundProvider != null)
     {
         _syncSoundProvider.DiscardSamples();
         _syncSoundProvider = null;
     }
     if (_outputProvider != null)
     {
         _outputProvider.DiscardSamples();
         _outputProvider.BaseSoundProvider = null;
     }
     _asyncSoundProvider         = source;
     _semiSync.BaseSoundProvider = source;
     _semiSync.RecalculateMagic(Global.Emulator.CoreComm.VsyncRate);
 }
예제 #2
0
 public void DiscardSamples()
 {
     _outputProvider.DiscardSamples();
 }