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:
@@ -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);
|
||||
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user