[pulseaudio-discuss] Audible plop at beginning when using pcat-simple

mindfsck mindfsck at gmail.com
Sun Aug 29 12:00:40 UTC 2021


>
> you could try is making use of the buffering attributes in
> pa_simple_new. Specifically, setting prebuf to a suitable value.
>

I tried setting prebuf to -1, 0, 1, 2, 4, 16, and 320. Made no difference
to me.

Another thing to check is if there are a couple of silent samples at the
> beginning of the problematic wav files
>

I checked. The first 20ms are silent samples.
Attached is the file.

On Sun, Aug 29, 2021 at 12:06 AM Sean Greenslade <sean at seangreenslade.com>
wrote:

> On Fri, Aug 27, 2021 at 04:57:07PM +0200, mindfsck wrote:
> > I seem to be to silly for it:
> > # sox in.wav -r 22050 out.wav resample
> > sox FAIL formats: can't open input file `out.wav': No such file or
> directory
> >
> > Of course there is no out.wav since that's what I want to create!
>
> I would not bother with trying to change sample rates, that's very
> unlikely to be the issue. Plus, a lot of sound cards only support 44.1
> kHz and 48 kHz, so pulse would just have to resample it again on playback.
>
> One thing you could try is making use of the buffering attributes in
> pa_simple_new. Specifically, setting prebuf to a suitable value. There's
> some helpful info in the buffer_attr docs page here:
>
>
> https://www.freedesktop.org/software/pulseaudio/doxygen/structpa__buffer__attr.html
>
> Another thing to check is if there are a couple of silent samples at the
> beginning of the problematic wav files. If the first sample is non-zero,
> that could potentially cause pops on playback.
>
> --Sean
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20210829/d801407f/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: out_short_clean.wav
Type: audio/x-wav
Size: 23340 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20210829/d801407f/attachment-0001.wav>


More information about the pulseaudio-discuss mailing list