diff options
author | MerryMage <MerryMage@users.noreply.github.com> | 2016-09-07 16:26:38 +0200 |
---|---|---|
committer | MerryMage <MerryMage@users.noreply.github.com> | 2016-09-07 16:27:32 +0200 |
commit | 991cdda3fc536e7d674205a4f1b54465562974e3 (patch) | |
tree | 07e509053f4139ade4a6a69a6e167c622fc6c69f /src/audio_core | |
parent | Merge pull request #2050 from MerryMage/adpcm (diff) | |
download | yuzu-991cdda3fc536e7d674205a4f1b54465562974e3.tar yuzu-991cdda3fc536e7d674205a4f1b54465562974e3.tar.gz yuzu-991cdda3fc536e7d674205a4f1b54465562974e3.tar.bz2 yuzu-991cdda3fc536e7d674205a4f1b54465562974e3.tar.lz yuzu-991cdda3fc536e7d674205a4f1b54465562974e3.tar.xz yuzu-991cdda3fc536e7d674205a4f1b54465562974e3.tar.zst yuzu-991cdda3fc536e7d674205a4f1b54465562974e3.zip |
Diffstat (limited to 'src/audio_core')
-rw-r--r-- | src/audio_core/hle/dsp.cpp | 2 | ||||
-rw-r--r-- | src/audio_core/sdl2_sink.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/hle/dsp.cpp b/src/audio_core/hle/dsp.cpp index 0cddeb82a..1420bf2dd 100644 --- a/src/audio_core/hle/dsp.cpp +++ b/src/audio_core/hle/dsp.cpp @@ -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. diff --git a/src/audio_core/sdl2_sink.cpp b/src/audio_core/sdl2_sink.cpp index 311dd5b59..1d7912715 100644 --- a/src/audio_core/sdl2_sink.cpp +++ b/src/audio_core/sdl2_sink.cpp @@ -38,7 +38,7 @@ SDL2Sink::SDL2Sink() : impl(std::make_unique<Impl>()) { desired_audiospec.format = AUDIO_S16; desired_audiospec.channels = 2; desired_audiospec.freq = native_sample_rate; - desired_audiospec.samples = 1024; + desired_audiospec.samples = 512; desired_audiospec.userdata = impl.get(); desired_audiospec.callback = &Impl::Callback; |