-
xians authored
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. Review URL: https://codereview.chromium.org/557693003 Cr-Commit-Position: refs/heads/master@{#295713}
f6734cf6