Revert to use pulse
This commit is contained in:
parent
f9692b76a1
commit
b550104e18
@ -52,9 +52,8 @@ bool RtAudioOutput::open()
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
RtAudio::StreamOptions streamOptions;
|
RtAudio::StreamOptions streamOptions;
|
||||||
streamOptions.numberOfBuffers = 1;
|
|
||||||
streamOptions.flags = RTAUDIO_MINIMIZE_LATENCY | RTAUDIO_SCHEDULE_REALTIME;
|
streamOptions.flags = RTAUDIO_MINIMIZE_LATENCY | RTAUDIO_SCHEDULE_REALTIME;
|
||||||
uint32_t bufferFrames = 64;
|
uint32_t bufferFrames = 256;
|
||||||
dac_->openStream(¶meters, nullptr, RTAUDIO_SINT16, sampleRate_, &bufferFrames, &RtAudioOutput::audioBufferReadHandler, static_cast<void*>(this), &streamOptions);
|
dac_->openStream(¶meters, nullptr, RTAUDIO_SINT16, sampleRate_, &bufferFrames, &RtAudioOutput::audioBufferReadHandler, static_cast<void*>(this), &streamOptions);
|
||||||
return audioBuffer_.open(QIODevice::ReadWrite);
|
return audioBuffer_.open(QIODevice::ReadWrite);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user