From 41a0411d79382485f39470fa319e10ec2e1c53be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20M=C3=BCller?= Date: Thu, 23 Jun 2022 21:32:34 +0200 Subject: [PATCH] Fix T99083: audio bad in command-line video player (blender -a) There was a wrong sample size computation in PulseAudioDevice. The sample format is switched to float32 for the command-line player. --- extern/audaspace/plugins/pulseaudio/PulseAudioDevice.cpp | 2 +- source/blender/windowmanager/intern/wm_playanim.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extern/audaspace/plugins/pulseaudio/PulseAudioDevice.cpp b/extern/audaspace/plugins/pulseaudio/PulseAudioDevice.cpp index cddc411cfc6..d2de89977a9 100644 --- a/extern/audaspace/plugins/pulseaudio/PulseAudioDevice.cpp +++ b/extern/audaspace/plugins/pulseaudio/PulseAudioDevice.cpp @@ -41,7 +41,7 @@ double PulseAudioDevice::PulseAudioSynchronizer::getPosition(std::shared_ptr lock(m_mixingLock); diff --git a/source/blender/windowmanager/intern/wm_playanim.c b/source/blender/windowmanager/intern/wm_playanim.c index 9c97b05f79b..baba64b2230 100644 --- a/source/blender/windowmanager/intern/wm_playanim.c +++ b/source/blender/windowmanager/intern/wm_playanim.c @@ -1856,7 +1856,7 @@ void WM_main_playanim(int argc, const char **argv) AUD_DeviceSpecs specs; specs.rate = AUD_RATE_48000; - specs.format = AUD_FORMAT_S16; + specs.format = AUD_FORMAT_FLOAT32; specs.channels = AUD_CHANNELS_STEREO; AUD_initOnce();