Oboe driver can have lower latency

This commit is contained in:
derselbst 2021-01-13 19:06:06 +01:00
parent 2cfd56bb10
commit c9c80a5fde

View file

@ -156,6 +156,21 @@ new_fluid_oboe_audio_driver(fluid_settings_t *settings, fluid_synth_t *synth)
->setContentType(ContentType::Music) ->setContentType(ContentType::Music)
->setCallback(dev->oboe_callback.get()); ->setCallback(dev->oboe_callback.get());
switch(performance_mode)
{
case 2:
builder->setSampleRateConversionQuality(SampleRateConversionQuality::Medium);
break;
case 1:
builder->setSampleRateConversionQuality(SampleRateConversionQuality::Fastest);
break;
default:
builder->setSampleRateConversionQuality(SampleRateConversionQuality::High);
break;
}
result = builder->openStream(dev->stream); result = builder->openStream(dev->stream);
if(result != Result::OK) if(result != Result::OK)