[pulseaudio-discuss] [PATCH] core: Drop empty gaps in the memblockq when playing data from it.

Antti-Ville Jansson Antti-Ville.Jansson at digia.com
Wed Apr 20 06:00:59 PDT 2011


The assert that this patch fixes can be reproduced with e.g. the
following script:


SAMPLE_PATH="/usr/share/sounds/alsa/"
SAMPLE="Front_Left"

pactl remove-sample $SAMPLE 2> /dev/null
pactl upload-sample $SAMPLE_PATH$SAMPLE.wav

mod1=`pactl load-module module-null-sink sink_name=null1`
mod2=`pactl load-module module-null-sink sink_name=null2`

pactl play-sample $SAMPLE null1

input=`pactl list | grep "Sink Input #" | tail -n 1 | cut -d# -f2`

echo "Sample $SAMPLE playing as Sink Input #$input"

pactl move-sink-input $input null2
pactl move-sink-input $input null1

pactl unload-module $mod1
pactl unload-module $mod2




More information about the pulseaudio-discuss mailing list