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.
This commit is contained in:
Jörg Müller
2022-06-23 21:32:34 +02:00
parent b0fe0e6a30
commit 41a0411d79
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ double PulseAudioDevice::PulseAudioSynchronizer::getPosition(std::shared_ptr<IHa
void PulseAudioDevice::updateRingBuffer()
{
unsigned int samplesize = AUD_SAMPLE_SIZE(m_specs);
unsigned int samplesize = AUD_DEVICE_SAMPLE_SIZE(m_specs);
std::unique_lock<std::mutex> lock(m_mixingLock);

View File

@@ -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();