1
0
Fork 0
forked from suyu/suyu

oboe_sink: set low latency performance mode

This commit is contained in:
Liam 2023-12-17 21:05:00 -05:00
parent 6ca530a721
commit 797e8fdbc3

View file

@ -67,6 +67,7 @@ public:
oboe::AudioStreamBuilder builder;
const auto result = builder.setDirection(direction)
->setPerformanceMode(oboe::PerformanceMode::LowLatency)
->setSampleRate(TargetSampleRate)
->setFormat(oboe::AudioFormat::I16)
->setFormatConversionAllowed(true)
@ -136,6 +137,7 @@ private:
oboe::AudioStreamBuilder builder;
const auto result = builder.setDirection(direction)
->setPerformanceMode(oboe::PerformanceMode::LowLatency)
->setSampleRate(TargetSampleRate)
->setChannelCount(expected_channels)
->setChannelMask(expected_mask)