mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-09 09:24:57 -04:00
RtAudio tweaks, disable unused GL states
This commit is contained in:
@@ -59,8 +59,13 @@ void AudioThread::threadMain() {
|
||||
unsigned int sampleRate = AUDIO_FREQUENCY;
|
||||
unsigned int bufferFrames = 256;
|
||||
|
||||
RtAudio::StreamOptions opts;
|
||||
opts.flags = RTAUDIO_MINIMIZE_LATENCY | RTAUDIO_SCHEDULE_REALTIME;
|
||||
opts.streamName = "CubicSDR Audio Output";
|
||||
opts.priority = 0;
|
||||
|
||||
try {
|
||||
dac.openStream(¶meters, NULL, RTAUDIO_FLOAT32, sampleRate, &bufferFrames, &audioCallback, (void *) this);
|
||||
dac.openStream(¶meters, NULL, RTAUDIO_FLOAT32, sampleRate, &bufferFrames, &audioCallback, (void *) this, &opts);
|
||||
dac.startStream();
|
||||
} catch (RtAudioError& e) {
|
||||
e.printMessage();
|
||||
|
||||
Reference in New Issue
Block a user