[pulseaudio-discuss] Crackling audio with Pulseaudio 4.0 and the simple Pulse API.
Peter Meerwald
pmeerw at pmeerw.net
Thu Jul 11 02:54:22 PDT 2013
Hello,
> > Tanu, do you know the constellation that triggers the bug? is #output
> > channel > #input channels?
>
> The ffmpeg resampler is used, because when setting up this machine for
> development, I was too lazy to install the speex header package, so
> speex is not available in my pulseaudio.
>
> The stream that speech-dispatcher creates is mono 22050 Hz s16le, and my
> sound card is stereo 44100 Hz s16le.
this makes perfect sense
> > nevertheless, I think any type-(i) resampler could be relaxed (made more
> > convenient for PA) by implementing a wrapper to add buffering and not
> > pushing back samples to the remap buffer (maybe this is what you meant by
> > simplifying the leftover buffer handling?)
>
> Yes, that's what I meant: make the buffering strictly internal to the
> resampling phase. And by performance hit I mean that you probably will
> have to do an extra copy of the input data when there is leftover data,
> because the leftover and the new input data will have to be concatenated
> in continuous memory area so that the resampler can consume both parts
> in one go (trying to process the data in two phases doesn't work,
> because the resampler most likely won't consume the small amount of
> leftover data).
ok, will try to cook something up
regards, p.
--
Peter Meerwald
+43-664-2444418 (mobile)
More information about the pulseaudio-discuss
mailing list