[pulseaudio-discuss] [PATCH] virtual-surround-sink: Fix setting max_rewind.

Niels Ole Salscheider niels_ole at salscheider-online.de
Mon Aug 20 00:52:36 PDT 2012


Am Montag, 20. August 2012, 09:37:50 schrieb David Henningsson:
> On 08/19/2012 01:55 PM, Tanu Kaskinen wrote:
> > The sink has different frame size than the sink input, so
> > the max_rewind value of the sink input needs to be converted
> > when setting the sink max_rewind value.
> > 
> > The conversion is already done correctly in
> > sink_input_update_max_rewind_cb().
> > ---
> > 
> >   src/modules/module-virtual-surround-sink.c |    2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/src/modules/module-virtual-surround-sink.c
> > b/src/modules/module-virtual-surround-sink.c index fc8f898..df36876
> > 100644
> > --- a/src/modules/module-virtual-surround-sink.c
> > +++ b/src/modules/module-virtual-surround-sink.c
> > @@ -386,7 +386,7 @@ static void sink_input_attach_cb(pa_sink_input *i) {
> > 
> >       /* FIXME: Too small max_rewind:
> >        * https://bugs.freedesktop.org/show_bug.cgi?id=53709 */
> > 
> > -    pa_sink_set_max_rewind_within_thread(u->sink,
> > pa_sink_input_get_max_rewind(i)); +   
> > pa_sink_set_max_rewind_within_thread(u->sink,
> > pa_sink_input_get_max_rewind(i) * u->sink_fs / u->fs);
> The same seems to apply to max_request as well?

That is correct, both values have to be converted.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20120820/ec2f304b/attachment.pgp>


More information about the pulseaudio-discuss mailing list