linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] jack


From: Tobias Gehrig
Subject: Re: [Linphone-developers] jack
Date: Sun, 07 Nov 2004 00:26:13 +0100

Hi,

Am Samstag, den 06.11.2004, 19:01 +0000 schrieb Will Kemp:
> On Sat, 6 Nov 2004, Tobias Gehrig wrote:
> 
> > following patch should fix the problem:
> >
> > --- jackcard.c~     2004-11-02 02:35:33.000000000 +0100
> > +++ jackcard.c      2004-11-06 15:48:07.000000000 +0100
> > @@ -662,6 +662,9 @@ SndCard * jack_card_new(jack_client_t *c
> >     obj->buffer_size = jack_get_buffer_size(obj->client);
> >
> >     if (obj->persistent) {
> > +     if (jack_activate (obj->client)) {
> > +       g_warning("cannot activate jack client");
> > +     } else obj->jack_active = TRUE;
> >       if ((obj->write.port = jack_port_register (obj->client, "output", 
> > JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0))==NULL)
> >         g_warning("error while trying to register output port");
> >       else
> 
> thankss! but i get:
> 
> address@hidden mediastreamer]$ patch -p0 < ../../linphone-jack-20041106.patch
> patching file jackcard.c
> Hunk #1 FAILED at 662.
> 1 out of 1 hunk FAILED -- saving rejects to file jackcard.c.rej
> 
> 
> jackcard.c.rej says:
> 
> ***************
> *** 662,667 ****
>          obj->buffer_size = jack_get_buffer_size(obj->client);
> 
>          if (obj->persistent) {
>            if ((obj->write.port = jack_port_register (obj->client,
Is here a line break in your original jackcard.c file? -------------^
If so, that is probably the problem.

> "output", JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0))==NULL)
>              g_warning("error while trying to register output port");
>            else
> --- 662,670 ----
>          obj->buffer_size = jack_get_buffer_size(obj->client);
> 
>          if (obj->persistent) {
> +          if (jack_activate (obj->client)) {
> +            g_warning("cannot activate jack client");
> +          } else obj->jack_active = TRUE;
>            if ((obj->write.port = jack_port_register (obj->client, "output", 
> JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0))==NULL)
>              g_warning("error while trying to register output port");
>            else
> 
> 
> i've tried to puzzle out what the problem is, but it's a bit beyond me,
> i'm afraid.
> 
> will
> 
> 
> 
> _______________________________________________
> Linphone-developers mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/linphone-developers

If all fails, you could still just insert those 3 lines starting with a
'+' (but without the '+' ;-)) at that position in the code in the
jack_card_new() function (right after 'if (obj->persistent) {').

MfG
        Tobias
-- 
Tobias Gehrig <address@hidden>
Universität Karlsruhe - Fakultät für Informatik





reply via email to

[Prev in Thread] Current Thread [Next in Thread]