mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
Oboe driver can have lower latency
This commit is contained in:
parent
2cfd56bb10
commit
c9c80a5fde
1 changed files with 15 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue