Slight fix to the audio sink

This commit is contained in:
Ryzerth 2021-07-24 19:53:57 +02:00
parent da8614438c
commit b327bfbe5d

View File

@ -167,10 +167,9 @@ private:
opts.flags = RTAUDIO_MINIMIZE_LATENCY;
opts.streamName = _streamName;
stereoPacker.setSampleCount(bufferFrames);
try {
audio.openStream(&parameters, NULL, RTAUDIO_FLOAT32, sampleRate, &bufferFrames, &callback, this, &opts);
stereoPacker.setSampleCount(bufferFrames);
audio.startStream();
stereoPacker.start();
}