mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-22 17:15:42 +01:00
oboe_sink: set low latency performance mode
This commit is contained in:
parent
6ca530a721
commit
797e8fdbc3
@ -67,6 +67,7 @@ public:
|
|||||||
oboe::AudioStreamBuilder builder;
|
oboe::AudioStreamBuilder builder;
|
||||||
|
|
||||||
const auto result = builder.setDirection(direction)
|
const auto result = builder.setDirection(direction)
|
||||||
|
->setPerformanceMode(oboe::PerformanceMode::LowLatency)
|
||||||
->setSampleRate(TargetSampleRate)
|
->setSampleRate(TargetSampleRate)
|
||||||
->setFormat(oboe::AudioFormat::I16)
|
->setFormat(oboe::AudioFormat::I16)
|
||||||
->setFormatConversionAllowed(true)
|
->setFormatConversionAllowed(true)
|
||||||
@ -136,6 +137,7 @@ private:
|
|||||||
|
|
||||||
oboe::AudioStreamBuilder builder;
|
oboe::AudioStreamBuilder builder;
|
||||||
const auto result = builder.setDirection(direction)
|
const auto result = builder.setDirection(direction)
|
||||||
|
->setPerformanceMode(oboe::PerformanceMode::LowLatency)
|
||||||
->setSampleRate(TargetSampleRate)
|
->setSampleRate(TargetSampleRate)
|
||||||
->setChannelCount(expected_channels)
|
->setChannelCount(expected_channels)
|
||||||
->setChannelMask(expected_mask)
|
->setChannelMask(expected_mask)
|
||||||
|
Loading…
Reference in New Issue
Block a user