DescriptionDynamically allocate more memory to AudioBlockFifo.
PulseAudio input can provide larger buffer size than what we ask for. This happens if the pulse internally increase its buffer size for various reasons. This patch handles it by dynamically allocate more memory to the FIFO.
BUG=411453
TEST=1. Have Jackd own a second (USB) microphone, and have
Pulseaudio connect to Jackd with the Pulseaudio Jack
module. There are many steps:
1a. Obtain a USB mic.
1b. Find out the ALSA name of the mic and of the default
audio.
1c. Create a file ~/.jackdrc containing:
/usr/bin/jackd -dalsa -d hw:<default audio device>
1d. Run "alsa_in -d hw:<USB mic name> &" (in background)
1e. Install pulseaudio-module-jack if not installed.
1f. Run "pactl load-module module-jack-source channels=2"
1g. Go into Pulseaudio and select Input, then Jack source.
1h. Install patchage, start it up and connect the USB mic
to the Pulseaudio JACK source.
2. Start up Chrome and begin a Hangout. Make sure that
Chrome is using the Default mic.
3. Have someone (or yourself on another computer) join the
Hangout and listen to you talk.
Committed: https://crrev.com/f6734cf6f2a0a5514babc0c3ed2d4e1b2662e113
Cr-Commit-Position: refs/heads/master@{#295713}
Patch Set 1 #
Total comments: 1
Patch Set 2 : addressed the comments and added unittests. #
Total comments: 12
Patch Set 3 : addressed the comments. #
Messages
Total messages: 13 (2 generated)
|