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.flags = RTAUDIO_MINIMIZE_LATENCY;
opts.streamName = _streamName; opts.streamName = _streamName;
stereoPacker.setSampleCount(bufferFrames);
try { try {
audio.openStream(&parameters, NULL, RTAUDIO_FLOAT32, sampleRate, &bufferFrames, &callback, this, &opts); audio.openStream(&parameters, NULL, RTAUDIO_FLOAT32, sampleRate, &bufferFrames, &callback, this, &opts);
stereoPacker.setSampleCount(bufferFrames);
audio.startStream(); audio.startStream();
stereoPacker.start(); stereoPacker.start();
} }