Exemplo n.º 1
0
 private PlaybackSession(Controller controller, int channels, int sampleRate, bool isPassThrough)
 {
     _controller              = controller;
     _playbackProcessor       = _controller.PlaybackProcessor;
     _playbackBuffer          = new PlaybackBuffer(controller);
     _upDownMixer             = new UpDownMixer();
     _vstProcessor            = new VSTProcessor();
     _winAmpDSPProcessor      = new WinAmpDSPProcessor(controller);
     _channels                = channels;
     _sampleRate              = sampleRate;
     _isPassThrough           = isPassThrough;
     _streamWriteProcDelegate = OutputStreamWriteProc;
     _state = SessionState.Reset;
 }
Exemplo n.º 2
0
 private PlaybackSession(Controller controller, int channels, int sampleRate, bool isPassThrough)
 {
   _controller = controller;
   _playbackProcessor = _controller.PlaybackProcessor;
   _playbackBuffer = new PlaybackBuffer(controller);
   _upDownMixer = new UpDownMixer();
   _vstProcessor = new VSTProcessor();
   _winAmpDSPProcessor = new WinAmpDSPProcessor(controller);
   _channels = channels;
   _sampleRate = sampleRate;
   _isPassThrough = isPassThrough;
   _streamWriteProcDelegate = OutputStreamWriteProc;
   _state = SessionState.Reset;
 }