roc-streaming / roc-pulse

Roc Toolkit modules for PulseAudio.
https://roc-streaming.org
GNU Lesser General Public License v2.1
8 stars 2 forks source link

PulseAudio sink input aborts on start #8

Closed gavv closed 5 years ago

gavv commented 5 years ago
$ pactl load-module module-roc-sink-input
Connection failure: Connection terminated
$ pulseaudio -vvv
....
I: [pulseaudio] client.c: Created 2 "Native client (UNIX socket client)"
D: [pulseaudio] protocol-native.c: Protocol version: remote 29, local 29
I: [pulseaudio] protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
D: [pulseaudio] protocol-native.c: SHM possible: yes
D: [pulseaudio] protocol-native.c: Negotiated SHM: yes
D: [pulseaudio] module-augment-properties.c: Looking for .desktop file for pactl
I: [pulseaudio] roc_lib: roc_context: opening context
D: [pulseaudio] roc_lib: pool: initializing: chunk_size=25616 object_size=400 objects_per_chunk=64
D: [pulseaudio] roc_lib: pool: initializing: chunk_size=131600 object_size=2056 objects_per_chunk=64
D: [pulseaudio] roc_lib: pool: initializing: chunk_size=131104 object_size=65544 objects_per_chunk=2
I: [pulseaudio] roc_lib: roc_receiver: opening receiver
I: [pulseaudio] roc_netio: udp receiver: opened port 0.0.0.0:10001
I: [pulseaudio] roc_lib: roc_receiver: bound to 0.0.0.0:10001 rtp_rsm8_source
I: [pulseaudio] roc_netio: udp receiver: opened port 0.0.0.0:10002
I: [pulseaudio] roc_lib: roc_receiver: bound to 0.0.0.0:10002 rsm8_repair
I: [pulseaudio] roc_lib: roc_context: starting context
D: [pulseaudio] roc_netio: transceiver: starting event loop
D: [pulseaudio] module-stream-restore.c: Not restoring device for stream sink-input-by-media-name:Roc Receiver, because already set to 'alsa_output.platform-audiocodec.analog-stereo'.
D: [pulseaudio] module-intended-roles.c: Not setting device for stream Roc Receiver, because already set.
D: [pulseaudio] sink-input.c: Negotiated format: pcm, format.sample_format = "\"float32le\""  format.rate = "44100"  format.channels = "2"  format.channel_map = "\"front-left,front-right\""
I: [pulseaudio] sink-input.c: Trying to change sample rate
I: [pulseaudio] sink-input.c: Rate changed to 44100 Hz
I: [pulseaudio] module-stream-restore.c: Restoring volume for sink input sink-input-by-media-name:Roc Receiver.
D: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.platform-audiocodec.analog-stereo becomes busy, resuming.
D: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.platform-audiocodec.analog-stereo becomes idle, timeout in 5 seconds.
I: [pulseaudio] resampler.c: Forcing resampler 'copy', because of fixed, identical sample rates.
D: [pulseaudio] resampler.c: Resampler:
D: [pulseaudio] resampler.c:   rate 44100 -> 44100 (method copy)
D: [pulseaudio] resampler.c:   format float32le -> s16le (intermediate s16le)
D: [pulseaudio] resampler.c:   channels 2 -> 2 (resampling 2)
D: [pulseaudio] memblockq.c: memblockq requested: maxlength=33554432, tlength=0, base=4, prebuf=0, minreq=1 maxrewind=0
D: [pulseaudio] memblockq.c: memblockq sanitized: maxlength=33554432, tlength=33554432, base=4, prebuf=0, minreq=4 maxrewind=0
I: [pulseaudio] sink-input.c: Created input 0 "Roc Receiver" on alsa_output.platform-audiocodec.analog-stereo with sample spec float32le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] sink-input.c:     media.name = "Roc Receiver"
I: [pulseaudio] sink-input.c:     module-stream-restore.id = "sink-input-by-media-name:Roc Receiver"
D: [alsa-sink-SUNXI-CODEC sndcodec-0] alsa-sink.c: Requested to rewind 352800 bytes.
D: [alsa-sink-SUNXI-CODEC sndcodec-0] alsa-sink.c: Limited to 292256 bytes.
D: [alsa-sink-SUNXI-CODEC sndcodec-0] alsa-sink.c: before: 73064
D: [alsa-sink-SUNXI-CODEC sndcodec-0] alsa-sink.c: after: 73064
D: [alsa-sink-SUNXI-CODEC sndcodec-0] alsa-sink.c: Rewound 292256 bytes.
D: [alsa-sink-SUNXI-CODEC sndcodec-0] sink.c: Processing rewind...
D: [alsa-sink-SUNXI-CODEC sndcodec-0] sink-input.c: Have to rewind 292256 bytes on render memblockq.
D: [alsa-sink-SUNXI-CODEC sndcodec-0] source.c: Processing rewind...
E: [alsa-sink-SUNXI-CODEC sndcodec-0] sink-input.c: Assertion 'tchunk.length > 0' failed at pulsecore/sink-input.c:917, function pa_sink_input_peek(). Aborting.
gavv commented 5 years ago

Fixed in de28ac1afd1a7cc1dcad3c8ad7d726aae39b539b