mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-23 03:57:52 -05:00
audio_core: Tweak audio latency
This commit is contained in:
@ -105,7 +105,7 @@ static void OutputCurrentFrame(const StereoFrame16& frame) {
|
||||
std::vector<s16> stretched_samples = time_stretcher.Process(sink->SamplesInQueue());
|
||||
sink->EnqueueSamples(stretched_samples.data(), stretched_samples.size() / 2);
|
||||
} else {
|
||||
constexpr size_t maximum_sample_latency = 1024; // about 32 miliseconds
|
||||
constexpr size_t maximum_sample_latency = 2048; // about 64 miliseconds
|
||||
if (sink->SamplesInQueue() > maximum_sample_latency) {
|
||||
// This can occur if we're running too fast and samples are starting to back up.
|
||||
// Just drop the samples.
|
||||
|
Reference in New Issue
Block a user