public void Init(string waveFilePath) { // 4410 samples == 100 milliseconds int sampleRate = 44100; int blockSize = (int)(sampleRate * 0.15f); //6615; int channels = 2; vstStream = new VSTStream(sampleRate, channels, blockSize, this.plugins, waveFilePath); //blocksize 4410 samples gave stuttering? 6615 was perfect, 8820 was OK (small glitches)! playbackDevice = new WaveOut(WaveCallbackInfo.FunctionCallback()); playbackDevice.Init(vstStream); }
public void Init(string waveFilePath) { // 4410 samples == 100 milliseconds int sampleRate = 44100; int blockSize = (int) (sampleRate * 0.15f); //6615; int channels = 2; vstStream = new VSTStream(sampleRate, channels, blockSize, this.plugins, waveFilePath); //blocksize 4410 samples gave stuttering? 6615 was perfect, 8820 was OK (small glitches)! playbackDevice = new WaveOut(WaveCallbackInfo.FunctionCallback()); playbackDevice.Init(vstStream); }