This avoids including module.rc.o in the helper static library when
building for windows, avoiding a duplicate module.rc.o for the
real simple_channel_mixer plugin.
Recent lld versions error out if two resource object files are passed
to the same link. (If GNU ld is presented with two resource object
files, it tries to merge the resources. In this case, as both object
files contain the same resource, they would conflict, and GNU ld would
print an error message, but still complete the link successfully.)
(cherry picked from commit 593d0ec84f)
This was happening when the instant ratio was smaller than the fixed ratio
(when the user ask for a playback speed > 1).
Fixes issue 956 on vlc-android.
(cherry picked from commit c07e53871d)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
The core is already taking care of smooth rate change (when the resampler is
used to catch up a delay).
(cherry picked from commit 5ee13b8b38)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Oddly, the output len can't be inferior to the input len (this was the case for
rate > 1).
(cherry picked from commit ac023f53d3)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
DTS inside WAV (@44.1kHZ) use 14bits words and have a fsize of 4096 bytes for
1024 samples. This means there is no room to put the IEC61937 header (IEC frame
size = 4096 = fsize = 1024 samples x 4).
Before this commit, we sent the IEC61937 frame without the header, this worked
only for some receivers.
This commit converts the 14bit sample to 16bit in order to have room for the
IEC61937 header. The new fsize is 4096*14/16 = 3584, so there is room for the 8
bytes header (plus 0 padding until 4096).
(cherry picked from commit 7af9abbecb)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
The calculation was wrong, we should compare the length of the previous block.
Regression from 1f246d2604
(cherry picked from commit 5e8c3cf6e1)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
This fixes a regression from 91f426996c
This regressions caused the audio converter chain to fail when a chan_mode
conversion was needed but no converter were found.
In the case of AOUT_CHANMODE_DOLBYSTEREO. The dolby converter won't work with a
stereo output. The lowest priority converter still need to handle this
conversion and drop the chan_mode conversion.
Fixes#19646
(cherry picked from commit 31e11f5bed)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
This HRTF is licensed under the GNU Lesser General Public License v2.1
or later.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
(cherry picked from commit 387c991aac)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
The idea is to load a resampler in order to change the tempo along with the
pitch, then use scaletempo to get back to the initial tempo while keeping the
adjusted pitch.
Fixes#8396
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
This module converts ambisonics channels to physical ones.
This module contains also a binauralizer submodule: It applies a head-related
transfer function to each physical channel in order to simulate a 3D sound with
a headphone.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Rename i_original_channels to i_chan_mode. For now, chan modes can be
DOLBYSTEREO or DUALMONO.
This new value, i_chan_mode, should only be set by demuxes/codecs/packetizers
if there is a special stereo mode to handle.