public VstFileWriter(VstHost host) { Host = host; // TODO: by some reason it doesn't render all the sound unless the blocksize is very large this.blocksize = 65536; // 16384 8192 4096 vstStream = new VstStreamNAudio(Host); }
private void SetupAudio(VstHost host) { // if first keypress setup audio if (Playback == null) { // with iblock=1...Nblocks and blocksize = Fs * tblock. Fs = 44100 and // tblock = 0.15 makes blocksize = 6615. int sampleRate = 44100; int blockSize = (int) (sampleRate * 0.15f); //6615; int channels = 2; host.Init(blockSize, sampleRate, channels); Playback = new VstPlaybackNAudio(host); } }
private void SetupAudio(VstHost host) { InitPlayback(); }
public VstPlaybackNAudio(VstHost host) { Host = host; Init(); }
public VstFileWriter(VstHost host) { Host = host; this.blocksize = 32768; // 16384 8192 4096 vstStream = new VstStreamNAudio(Host); }
public VstStreamNAudio(VstHost host) { Host = host; this.SetWaveFormat(host.SampleRate, host.Channels); }