Formula-1 engine in VW Bug RE: TiMidity++ jackified

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

Formula-1 engine in VW Bug RE: TiMidity++ jackified

Chris Worley
I know this setup might irk jackd developers... like I'm trying to put a
Formula-1 engine in VW Bug...

I've got an ALS4000 sound card, with no midi interface.  I'm using
timidity for MIDI generation as documented in the SuSE manual (I'm
running SuSE 9.3):

http://linux.techteam.gr/docs/suse/9.1/ch19s10.html

The only exception is: I run Timidity with -OR for the ArTs interface,
as I use KDE.  This works fine with apps like "kmid" and some Windows
apps running under (Crossover) Wine; but I'd like to use a nice Linux
native app for Midi... like Rosegarden.

Rosegarden, which needs Jack... so I need to get Jackd to work with this
scheme.  Once jack is up under Alsa, the other apps quit working (no
sound when playing midi files), and Rosegarden acts like it is playing a
file (and verbosed Jackd is responding to play/stop, etc...), but no
sound either.

Starting Jackd under Alsa, it complains:

        # jackd -d alsa
        jackd 0.100.0
        Copyright 2001-2005 Paul Davis and others.
        jackd comes with ABSOLUTELY NO WARRANTY
        This is free software, and you are welcome to redistribute it
        under certain conditions; see the file COPYING for details
       
        JACK compiled with System V SHM support.
        loading driver ..
        creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
        control device hw:0
        ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
        configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
        Note: audio device hw:0 doesn't support a 32bit sample format so JACK will try a 24bit format instead
        Note: audio device hw:0 doesn't support a 24bit sample format so JACK will try a 16bit format instead
        nperiods = 2 for capture

So, I figure the "capture only mode" means no output.  This doesn't seem
to be ArTs related... I get this message even if ArTs isn't running.

I also try to start it under ArTs/Oss, which I figure is my best bet in
my current environment (trying to get everything working together),
although the Jackd developers will find this least palatable:

        # artsdsp jackd -d oss
        jackd 0.100.0
        Copyright 2001-2005 Paul Davis and others.
        jackd comes with ABSOLUTELY NO WARRANTY
        This is free software, and you are welcome to redistribute it
        under certain conditions; see the file COPYING for details
       
        JACK compiled with System V SHM support.
        loading driver ..
        oss_driver: /dev/dsp : 0x10/2/48000 (4096)
        oss_driver: indevbuf 4096 B, outdevbuf 4096 B
        oss_driver: using barrier mode, (dual thread)

But, no sound either.

In starting Timidity as described in the attached:
       
        # /usr/bin/timidity -iA -B2,8 -Oj
        Couldn't open JACK device (`j')
        #
       
Even though jackd is running.

Rosegarden says (irrespective of how I started jackd):
       
        Rosegarden 4-1.0 - AlsaDriver - alsa-lib version 1.0.8
       
        JackDriver::initialiseAudio - JACK sample rate = 48000Hz, buffer size = 1024
        JackDriver::initialiseAudio - creating disk thread
        JackDriver::initialiseAudio - no JACK physical outputs found
        JackDriver::initialiseAudio - found 2 JACK physical inputs
        JackDriver::initialiseAudio - connecting from "alsa_pcm:capture_1" to "rosegarden:record in 1 L"
        JackDriver::initialiseAudio - connecting from "alsa_pcm:capture_2" to "rosegarden:record in 1 R"
        JackDriver::initialiseAudio - initialised JACK audio subsystem

  ALSA Client information:

    62,0 - (Midi Through, Midi Through Port-0)                  (DUPLEX) [ctype 2, ptype 2, cap 99]
    64,0 - (Avance Logic ALS4000 MIDI, Avance Logic ALS4000 MIDI)                       (DUPLEX) [ctype 2, ptype 2, cap 127]
    65,0 - (OPL3 FM synth, OPL3 FM Port)                (WRITE ONLY) [ctype 2, ptype 1030, cap 66]
    128,0 - (TiMidity, TiMidity port 0)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
    128,1 - (TiMidity, TiMidity port 1)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
    128,2 - (TiMidity, TiMidity port 2)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
    128,3 - (TiMidity, TiMidity port 3)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
    129,0 - (Rosegarden, Rosegarden input)              (WRITE ONLY) [ctype 1, ptype 1048576, cap 66]


So, I don't know why, once Jackd, all the rest of the apps going through
Timidity get hosed, or why Jackd doesn't seem to go through Timidity as
I need.

Any ideas?

Thanks


Chris

> Hi,
>
> JFYI: TiMidity++ cvs version was now jackified.
>
> it's a quite simple and stupid hack, but alas, it works somehow :)
> you can get the latest version from
>
> timidity.sf.net
>
> run timidity with -Oj option.  you might need to give the proper -B
> option (such as -B2,8 for 2 x 256-frame fragments) to match with
> the JACK configuration.
>
>
> btw, all recent codes are already on the main branch, so you don't
> need "-r R2_12_0_pre1b" option to cvs as mentioned there.
>
>
> Takashi
>
>
--
Chris Worley <[hidden email]>



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Formula-1 engine in VW Bug RE: TiMidity++ jackified

Lee Revell
On Tue, 2005-09-13 at 10:21 -0600, Chris Worley wrote:

> I know this setup might irk jackd developers... like I'm trying to put a
> Formula-1 engine in VW Bug...
>
> I've got an ALS4000 sound card, with no midi interface.  I'm using
> timidity for MIDI generation as documented in the SuSE manual (I'm
> running SuSE 9.3):
>
> http://linux.techteam.gr/docs/suse/9.1/ch19s10.html
>
> The only exception is: I run Timidity with -OR for the ArTs interface,
> as I use KDE.  This works fine with apps like "kmid" and some Windows
> apps running under (Crossover) Wine; but I'd like to use a nice Linux
> native app for Midi... like Rosegarden.
>
> Rosegarden, which needs Jack... so I need to get Jackd to work with this
> scheme.  Once jack is up under Alsa, the other apps quit working (no
> sound when playing midi files), and Rosegarden acts like it is playing a
> file (and verbosed Jackd is responding to play/stop, etc...), but no
> sound either.

Sounds like your card doesn't do hardware mixing.  So if you want to use
JACK then ALL your apps have to be jackified.  Or else fix JACK to play
nice with dmix.  Or get a better soundcard.

Lee



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Formula-1 engine in VW Bug RE: TiMidity++ jackified

Daniel Schregenberger
On Die, 2005-09-13 at 13:19 -0400, Lee Revell wrote:
> Sounds like your card doesn't do hardware mixing.  So if you want to use
> JACK then ALL your apps have to be jackified.  Or else fix JACK to play
> nice with dmix.  Or get a better soundcard.

You can run arts with jack output. I do that for skype. But it's not
really recommended. If possible you should use jackified apps.

-- Daniel


--
http://www.despite.ch/ -- http://www.npfdd.ch/


Make sure your E-mail can be read by everyone!
http://www.betips.net/etc/evilmail.html

Please avoid sending me Word or PowerPoint attachments.
http://www.gnu.org/philosophy/no-word-attachments.html
--
Referring to a book: I read part of it all the way through. -Samuel
Goldwyn

smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Formula-1 engine in VW Bug RE: TiMidity++ jackified

Chris Worley
In reply to this post by Chris Worley
Just to clarify: interoperability of Jackd apps with other midi/sound
apps is secondary.  My primary concern is just getting Rosegarden
working via Jackd in any manner whatsoever.

See inline for additional detail...

On Tue, 2005-09-13 at 10:21 -0600, Chris Worley wrote:

> I know this setup might irk jackd developers... like I'm trying to put a
> Formula-1 engine in VW Bug...
>
> I've got an ALS4000 sound card, with no midi interface.  I'm using
> timidity for MIDI generation as documented in the SuSE manual (I'm
> running SuSE 9.3):
>
> http://linux.techteam.gr/docs/suse/9.1/ch19s10.html
>
> The only exception is: I run Timidity with -OR for the ArTs interface,
> as I use KDE.  This works fine with apps like "kmid" and some Windows
> apps running under (Crossover) Wine; but I'd like to use a nice Linux
> native app for Midi... like Rosegarden.
>
> Rosegarden, which needs Jack... so I need to get Jackd to work with this
> scheme.  Once jack is up under Alsa, the other apps quit working (no
> sound when playing midi files), and Rosegarden acts like it is playing a
> file (and verbosed Jackd is responding to play/stop, etc...), but no
> sound either.
>
> Starting Jackd under Alsa, it complains:
>
>         # jackd -d alsa
>         jackd 0.100.0
>         Copyright 2001-2005 Paul Davis and others.
>         jackd comes with ABSOLUTELY NO WARRANTY
>         This is free software, and you are welcome to redistribute it
>         under certain conditions; see the file COPYING for details
>        
>         JACK compiled with System V SHM support.
>         loading driver ..
>         creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
>         control device hw:0
>         ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
>         configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
>         Note: audio device hw:0 doesn't support a 32bit sample format so JACK will try a 24bit format instead
>         Note: audio device hw:0 doesn't support a 24bit sample format so JACK will try a 16bit format instead
>         nperiods = 2 for capture
>
> So, I figure the "capture only mode" means no output.  This doesn't seem
> to be ArTs related... I get this message even if ArTs isn't running.
>
> I also try to start it under ArTs/Oss, which I figure is my best bet in
> my current environment (trying to get everything working together),
> although the Jackd developers will find this least palatable:
>
>         # artsdsp jackd -d oss
>         jackd 0.100.0
>         Copyright 2001-2005 Paul Davis and others.
>         jackd comes with ABSOLUTELY NO WARRANTY
>         This is free software, and you are welcome to redistribute it
>         under certain conditions; see the file COPYING for details
>        
>         JACK compiled with System V SHM support.
>         loading driver ..
>         oss_driver: /dev/dsp : 0x10/2/48000 (4096)
>         oss_driver: indevbuf 4096 B, outdevbuf 4096 B
>         oss_driver: using barrier mode, (dual thread)
>
> But, no sound either.
>
> In starting Timidity as described in the attached:
>        
>         # /usr/bin/timidity -iA -B2,8 -Oj
>         Couldn't open JACK device (`j')
>         #
>        
> Even though jackd is running.
>
> Rosegarden says (irrespective of how I started jackd):

I noticed that Rosegarden said Jackd had "no outputs" in my previous
diatribe... that's only when using ALSA, under ArTs/OSS, I do get
outputs (so, it's not irrespective of how I start Jackd):

        JackDriver::initialiseAudio - JACK sample rate = 48000Hz, buffer size = 1024
        JackDriver::initialiseAudio - creating disk thread
        JackDriver::initialiseAudio - found 2 JACK physical outputs
        JackDriver::initialiseAudio - connecting from "rosegarden:master out L" to "oss:playback_1"
        JackDriver::initialiseAudio - connecting from "rosegarden:master out R" to "oss:playback_2"
        JackDriver::initialiseAudio - found 2 JACK physical inputs
        JackDriver::initialiseAudio - connecting from "oss:capture_1" to "rosegarden:record in 1 L"
        JackDriver::initialiseAudio - connecting from "oss:capture_2" to "rosegarden:record in 1 R"
        JackDriver::initialiseAudio - initialised JACK audio subsystem
       
  ALSA Client information:

    62,0 - (Midi Through, Midi Through Port-0)                  (DUPLEX) [ctype 2, ptype 2, cap 99]
    64,0 - (Avance Logic ALS4000 MIDI, Avance Logic ALS4000 MIDI)                       (DUPLEX) [ctype 2, ptype 2, cap 127]
    65,0 - (OPL3 FM synth, OPL3 FM Port)                (WRITE ONLY) [ctype 2, ptype 1030, cap 66]
    128,0 - (TiMidity, TiMidity port 0)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
    128,1 - (TiMidity, TiMidity port 1)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
    128,2 - (TiMidity, TiMidity port 2)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
    128,3 - (TiMidity, TiMidity port 3)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
    129,0 - (Rosegarden, Rosegarden input)              (WRITE ONLY) [ctype 1, ptype 1048576, cap 66]

Thanks,

Chris

>  
>        
>         Rosegarden 4-1.0 - AlsaDriver - alsa-lib version 1.0.8
>        
>         JackDriver::initialiseAudio - JACK sample rate = 48000Hz, buffer size = 1024
>         JackDriver::initialiseAudio - creating disk thread
>         JackDriver::initialiseAudio - no JACK physical outputs found
>         JackDriver::initialiseAudio - found 2 JACK physical inputs
>         JackDriver::initialiseAudio - connecting from "alsa_pcm:capture_1" to "rosegarden:record in 1 L"
>         JackDriver::initialiseAudio - connecting from "alsa_pcm:capture_2" to "rosegarden:record in 1 R"
>         JackDriver::initialiseAudio - initialised JACK audio subsystem
>
>   ALSA Client information:
>
>     62,0 - (Midi Through, Midi Through Port-0)                  (DUPLEX) [ctype 2, ptype 2, cap 99]
>     64,0 - (Avance Logic ALS4000 MIDI, Avance Logic ALS4000 MIDI)                       (DUPLEX) [ctype 2, ptype 2, cap 127]
>     65,0 - (OPL3 FM synth, OPL3 FM Port)                (WRITE ONLY) [ctype 2, ptype 1030, cap 66]
>     128,0 - (TiMidity, TiMidity port 0)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
>     128,1 - (TiMidity, TiMidity port 1)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
>     128,2 - (TiMidity, TiMidity port 2)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
>     128,3 - (TiMidity, TiMidity port 3)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
>     129,0 - (Rosegarden, Rosegarden input)              (WRITE ONLY) [ctype 1, ptype 1048576, cap 66]
>
>
> So, I don't know why, once Jackd, all the rest of the apps going through
> Timidity get hosed, or why Jackd doesn't seem to go through Timidity as
> I need.
>
> Any ideas?
>
> Thanks
>
>
> Chris
> > Hi,
> >
> > JFYI: TiMidity++ cvs version was now jackified.
> >
> > it's a quite simple and stupid hack, but alas, it works somehow :)
> > you can get the latest version from
> >
> > timidity.sf.net
> >
> > run timidity with -Oj option.  you might need to give the proper -B
> > option (such as -B2,8 for 2 x 256-frame fragments) to match with
> > the JACK configuration.
> >
> >
> > btw, all recent codes are already on the main branch, so you don't
> > need "-r R2_12_0_pre1b" option to cvs as mentioned there.
> >
> >
> > Takashi
> >
> >



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Formula-1 engine in VW Bug RE: TiMidity++ jackified

Lee Revell
On Tue, 2005-09-13 at 15:49 -0600, Chris Worley wrote:

> > Starting Jackd under Alsa, it complains:
> >
> >         # jackd -d alsa
> >         jackd 0.100.0
> >         Copyright 2001-2005 Paul Davis and others.
> >         jackd comes with ABSOLUTELY NO WARRANTY
> >         This is free software, and you are welcome to redistribute it
> >         under certain conditions; see the file COPYING for details
> >        
> >         JACK compiled with System V SHM support.
> >         loading driver ..
> >         creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
> >         control device hw:0
> >         ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
> >         configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
> >         Note: audio device hw:0 doesn't support a 32bit sample format so JACK will try a 24bit format instead
> >         Note: audio device hw:0 doesn't support a 24bit sample format so JACK will try a 16bit format instead
> >         nperiods = 2 for capture
> >

It looks like some other process is blocking the playback device.

What does "fuser /dev/dsp" and "fuser /dev/snd/*" say?

Lee



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Formula-1 engine in VW Bug RE: TiMidity++ jackified

Chris Worley


On Tue, 2005-09-13 at 17:58 -0400, Lee Revell wrote:

> On Tue, 2005-09-13 at 15:49 -0600, Chris Worley wrote:
> > > Starting Jackd under Alsa, it complains:
> > >
> > >         # jackd -d alsa
> > >         jackd 0.100.0
> > >         Copyright 2001-2005 Paul Davis and others.
> > >         jackd comes with ABSOLUTELY NO WARRANTY
> > >         This is free software, and you are welcome to redistribute it
> > >         under certain conditions; see the file COPYING for details
> > >        
> > >         JACK compiled with System V SHM support.
> > >         loading driver ..
> > >         creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
> > >         control device hw:0
> > >         ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
> > >         configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
> > >         Note: audio device hw:0 doesn't support a 32bit sample format so JACK will try a 24bit format instead
> > >         Note: audio device hw:0 doesn't support a 24bit sample format so JACK will try a 16bit format instead
> > >         nperiods = 2 for capture
> > >
>
> It looks like some other process is blocking the playback device.
>
> What does "fuser /dev/dsp" and "fuser /dev/snd/*" say?

At this point, I can't repeat the "Capture-only mode" error, and
nothing's using the audio devices.  Artsd restarts itself occasionally,
so that might have been it.

Rosegarden reports the following:

JackDriver::initialiseAudio - JACK sample rate = 48000Hz, buffer size = 1024
JackDriver::initialiseAudio - creating disk thread
JackDriver::initialiseAudio - found 2 JACK physical outputs
JackDriver::initialiseAudio - connecting from "rosegarden:master out L" to "alsa_pcm:playback_1"
JackDriver::initialiseAudio - connecting from "rosegarden:master out R" to "alsa_pcm:playback_2"
JackDriver::initialiseAudio - found 2 JACK physical inputs
JackDriver::initialiseAudio - connecting from "alsa_pcm:capture_1" to "rosegarden:record in 1 L"
JackDriver::initialiseAudio - connecting from "alsa_pcm:capture_2" to "rosegarden:record in 1 R"
JackDriver::initialiseAudio - initialised JACK audio subsystem

  ALSA Client information:

    62,0 - (Midi Through, Midi Through Port-0)                  (DUPLEX) [ctype 2, ptype 2, cap 99]
    64,0 - (Avance Logic ALS4000 MIDI, Avance Logic ALS4000 MIDI)                       (DUPLEX) [ctype 2, ptype 2, cap 127]
    65,0 - (OPL3 FM synth, OPL3 FM Port)                (WRITE ONLY) [ctype 2, ptype 1030, cap 66]
    128,0 - (TiMidity, TiMidity port 0)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
    128,1 - (TiMidity, TiMidity port 1)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
    128,2 - (TiMidity, TiMidity port 2)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
    128,3 - (TiMidity, TiMidity port 3)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]


... but, still no sound.  I started Timidity in "alsa" output mode,
rather than ArTs output mode.

In playing from Rosegarden, Timidity occasionally complains that it
can't open the Alsa device.

Thanks,

Chris
>
> Lee
>
--
Chris Worley <[hidden email]>



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Formula-1 engine in VW Bug RE: TiMidity++ jackified

Lee Revell
On Tue, 2005-09-13 at 17:16 -0600, Chris Worley wrote:

>
> On Tue, 2005-09-13 at 17:58 -0400, Lee Revell wrote:
> > On Tue, 2005-09-13 at 15:49 -0600, Chris Worley wrote:
> > > > Starting Jackd under Alsa, it complains:
> > > >
> > > >         # jackd -d alsa
> > > >         jackd 0.100.0
> > > >         Copyright 2001-2005 Paul Davis and others.
> > > >         jackd comes with ABSOLUTELY NO WARRANTY
> > > >         This is free software, and you are welcome to redistribute it
> > > >         under certain conditions; see the file COPYING for details
> > > >        
> > > >         JACK compiled with System V SHM support.
> > > >         loading driver ..
> > > >         creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
> > > >         control device hw:0
> > > >         ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
> > > >         configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
> > > >         Note: audio device hw:0 doesn't support a 32bit sample format so JACK will try a 24bit format instead
> > > >         Note: audio device hw:0 doesn't support a 24bit sample format so JACK will try a 16bit format instead
> > > >         nperiods = 2 for capture
> > > >
> >
> > It looks like some other process is blocking the playback device.
> >
> > What does "fuser /dev/dsp" and "fuser /dev/snd/*" say?
>
> At this point, I can't repeat the "Capture-only mode" error, and
> nothing's using the audio devices.  Artsd restarts itself occasionally,
> so that might have been it.
>
> Rosegarden reports the following:
>
> JackDriver::initialiseAudio - JACK sample rate = 48000Hz, buffer size = 1024
> JackDriver::initialiseAudio - creating disk thread
> JackDriver::initialiseAudio - found 2 JACK physical outputs
> JackDriver::initialiseAudio - connecting from "rosegarden:master out L" to "alsa_pcm:playback_1"
> JackDriver::initialiseAudio - connecting from "rosegarden:master out R" to "alsa_pcm:playback_2"
> JackDriver::initialiseAudio - found 2 JACK physical inputs
> JackDriver::initialiseAudio - connecting from "alsa_pcm:capture_1" to "rosegarden:record in 1 L"
> JackDriver::initialiseAudio - connecting from "alsa_pcm:capture_2" to "rosegarden:record in 1 R"
> JackDriver::initialiseAudio - initialised JACK audio subsystem
>
>   ALSA Client information:
>
>     62,0 - (Midi Through, Midi Through Port-0)                  (DUPLEX) [ctype 2, ptype 2, cap 99]
>     64,0 - (Avance Logic ALS4000 MIDI, Avance Logic ALS4000 MIDI)                       (DUPLEX) [ctype 2, ptype 2, cap 127]
>     65,0 - (OPL3 FM synth, OPL3 FM Port)                (WRITE ONLY) [ctype 2, ptype 1030, cap 66]
>     128,0 - (TiMidity, TiMidity port 0)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
>     128,1 - (TiMidity, TiMidity port 1)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
>     128,2 - (TiMidity, TiMidity port 2)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
>     128,3 - (TiMidity, TiMidity port 3)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
>
>
> ... but, still no sound.  I started Timidity in "alsa" output mode,
> rather than ArTs output mode.

OK so Rosegarden is your sequencer and Timidity is the synth.  So you're
trying to connect Rosegarden's MIDI output to Timidity's MIDI input and
have it play through JACK?

Lee



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Formula-1 engine in VW Bug RE: TiMidity++ jackified

Chris Worley
In reply to this post by Chris Worley
Got it.

Whatever was blocking playback devices earlier may have also precluded
timidity from working with the -Oj (Jack) option.

Artsd also has a "-a jack" option.

So, I've got Rosegarden working and interoperability.

Does anybody know where Artsd gets launched?  I need to start all three
apps in the proper order to get this turn-key.

Thanks,

Chris
On Tue, 2005-09-13 at 17:16 -0600, Chris Worley wrote:

>
> On Tue, 2005-09-13 at 17:58 -0400, Lee Revell wrote:
> > On Tue, 2005-09-13 at 15:49 -0600, Chris Worley wrote:
> > > > Starting Jackd under Alsa, it complains:
> > > >
> > > >         # jackd -d alsa
> > > >         jackd 0.100.0
> > > >         Copyright 2001-2005 Paul Davis and others.
> > > >         jackd comes with ABSOLUTELY NO WARRANTY
> > > >         This is free software, and you are welcome to redistribute it
> > > >         under certain conditions; see the file COPYING for details
> > > >        
> > > >         JACK compiled with System V SHM support.
> > > >         loading driver ..
> > > >         creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
> > > >         control device hw:0
> > > >         ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
> > > >         configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
> > > >         Note: audio device hw:0 doesn't support a 32bit sample format so JACK will try a 24bit format instead
> > > >         Note: audio device hw:0 doesn't support a 24bit sample format so JACK will try a 16bit format instead
> > > >         nperiods = 2 for capture
> > > >
> >
> > It looks like some other process is blocking the playback device.
> >
> > What does "fuser /dev/dsp" and "fuser /dev/snd/*" say?
>
> At this point, I can't repeat the "Capture-only mode" error, and
> nothing's using the audio devices.  Artsd restarts itself occasionally,
> so that might have been it.
>
> Rosegarden reports the following:
>
> JackDriver::initialiseAudio - JACK sample rate = 48000Hz, buffer size = 1024
> JackDriver::initialiseAudio - creating disk thread
> JackDriver::initialiseAudio - found 2 JACK physical outputs
> JackDriver::initialiseAudio - connecting from "rosegarden:master out L" to "alsa_pcm:playback_1"
> JackDriver::initialiseAudio - connecting from "rosegarden:master out R" to "alsa_pcm:playback_2"
> JackDriver::initialiseAudio - found 2 JACK physical inputs
> JackDriver::initialiseAudio - connecting from "alsa_pcm:capture_1" to "rosegarden:record in 1 L"
> JackDriver::initialiseAudio - connecting from "alsa_pcm:capture_2" to "rosegarden:record in 1 R"
> JackDriver::initialiseAudio - initialised JACK audio subsystem
>
>   ALSA Client information:
>
>     62,0 - (Midi Through, Midi Through Port-0)                  (DUPLEX) [ctype 2, ptype 2, cap 99]
>     64,0 - (Avance Logic ALS4000 MIDI, Avance Logic ALS4000 MIDI)                       (DUPLEX) [ctype 2, ptype 2, cap 127]
>     65,0 - (OPL3 FM synth, OPL3 FM Port)                (WRITE ONLY) [ctype 2, ptype 1030, cap 66]
>     128,0 - (TiMidity, TiMidity port 0)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
>     128,1 - (TiMidity, TiMidity port 1)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
>     128,2 - (TiMidity, TiMidity port 2)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
>     128,3 - (TiMidity, TiMidity port 3)         (WRITE ONLY) [ctype 1, ptype 2, cap 66]
>
>
> ... but, still no sound.  I started Timidity in "alsa" output mode,
> rather than ArTs output mode.
>
> In playing from Rosegarden, Timidity occasionally complains that it
> can't open the Alsa device.
>
> Thanks,
>
> Chris
> >
> > Lee
> >



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Formula-1 engine in VW Bug RE: TiMidity++ jackified

Lee Revell
On Tue, 2005-09-13 at 17:54 -0600, Chris Worley wrote:
> Got it.
>
> Whatever was blocking playback devices earlier may have also precluded
> timidity from working with the -Oj (Jack) option.

Several recent threads lead me to believe that JACK should print better
error messages when opening a device fails.  For example I just guessed
that something was blocking the playback device.  If it printed a
standard POSIX error code like -EBUSY it would be immediately obvious.

Lee



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Formula-1 engine in VW Bug RE: TiMidity++ jackified

Lee Revell
In reply to this post by Chris Worley
On Tue, 2005-09-13 at 17:54 -0600, Chris Worley wrote:

> Got it.
>
> Whatever was blocking playback devices earlier may have also precluded
> timidity from working with the -Oj (Jack) option.
>
> Artsd also has a "-a jack" option.
>
> So, I've got Rosegarden working and interoperability.
>
> Does anybody know where Artsd gets launched?  I need to start all three
> apps in the proper order to get this turn-key.

Does JACK currently support an interface that, if a client is launched
and JACK is not running, would just block the client until JACK is
running, then connect?

Lee



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Formula-1 engine in VW Bug RE: TiMidity++ jackified

Jack O'Quin-2
Lee Revell <[hidden email]> writes:

> Does JACK currently support an interface that, if a client is launched
> and JACK is not running, would just block the client until JACK is
> running, then connect?

Yes, but maybe not exactly what you want.

Using jack_client_open(), the client will start the server if it is
not already running, wait until it starts, and then connect.  This can
be overridden with the JackNoStartServer option.

If multiple clients try to do this simultaneously, they could attempt
to start more than one server with the same name.  The first server
process to register that name will win the race, the others go away,
and all the clients should connect to the winning server.

Older clients using jack_client_new() will behave similarly if
JACK_START_SERVER is set in the client's environment.  In all cases,
setting JACK_NO_START_SERVER disables this feature.

We could probably add a new JackWaitForServer option to poll for a
server, assuming that eventually some other process will start it.  Is
that what you want?  I doubt we should do that by default, and there
should probably be some timeout to keep it from waiting forever.
--
  joq


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Formula-1 engine in VW Bug RE: TiMidity++ jackified

Paul Davis
In reply to this post by Lee Revell
On Tue, 2005-09-13 at 20:47 -0400, Lee Revell wrote:

> On Tue, 2005-09-13 at 17:54 -0600, Chris Worley wrote:
> > Got it.
> >
> > Whatever was blocking playback devices earlier may have also precluded
> > timidity from working with the -Oj (Jack) option.
>
> Several recent threads lead me to believe that JACK should print better
> error messages when opening a device fails.  For example I just guessed
> that something was blocking the playback device.  If it printed a
> standard POSIX error code like -EBUSY it would be immediately obvious.

like this?

                        case EBUSY:
                                jack_error ("the playback device \"%s\" is "
                                            "already in use. Please stop the"
                                            " application using it and "
                                            "run JACK again",
                                            playback_alsa_device);





-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Formula-1 engine in VW Bug RE: TiMidity++ jackified

Jussi Laako
In reply to this post by Lee Revell
On Tue, 2005-09-13 at 20:47 -0400, Lee Revell wrote:
> Several recent threads lead me to believe that JACK should print better
> error messages when opening a device fails.  For example I just guessed
> that something was blocking the playback device.  If it printed a
> standard POSIX error code like -EBUSY it would be immediately obvious.

At least OSS backend does, if the driver returns some reasonable error
when opening the device.


--
Jussi Laako <[hidden email]>



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Formula-1 engine in VW Bug RE: [Jackit-devel] TiMidity++ jackified

Lee Revell
In reply to this post by Paul Davis
On Tue, 2005-09-13 at 22:42 -0400, Paul Davis wrote:

> On Tue, 2005-09-13 at 20:47 -0400, Lee Revell wrote:
> > On Tue, 2005-09-13 at 17:54 -0600, Chris Worley wrote:
> > > Got it.
> > >
> > > Whatever was blocking playback devices earlier may have also precluded
> > > timidity from working with the -Oj (Jack) option.
> >
> > Several recent threads lead me to believe that JACK should print better
> > error messages when opening a device fails.  For example I just guessed
> > that something was blocking the playback device.  If it printed a
> > standard POSIX error code like -EBUSY it would be immediately obvious.
>
> like this?
>
> case EBUSY:
> jack_error ("the playback device \"%s\" is "
>    "already in use. Please stop the"
>    " application using it and "
>    "run JACK again",
>    playback_alsa_device);

Yes, exactly.  Is this in CVS?

Lee



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Formula-1 engine in VW Bug RE: TiMidity++ jackified

Esben Stien
In reply to this post by Lee Revell
Lee Revell <[hidden email]> writes:

> Sounds like your card doesn't do hardware mixing.

This is not always enough either. Some cards require exclusive access
and would not work even though they do hardware mixing. This is the
case with RME Multiface II.

>  So if you want to use JACK then ALL your apps have to be jackified.

This is most often the case, from what I understand.

> Or else fix JACK to play nice with dmix.

Don't you loose something here?. Can jackd still guarantee the same
realtime deadlines?.

> Or get a better soundcard.

The better sound cards require exclusive access, from my
understanding.

--
Esben Stien is b0ef@e     s      a            
         http://www. s     t    n m
          irc://irc.  b  -  i  .   e/%23contact
          [sip|iax]:   e     e
           jid:b0ef@    n     n


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Formula-1 engine in VW Bug RE: TiMidity++ jackified

Lee Revell
On Thu, 2005-09-15 at 19:33 +0200, Esben Stien wrote:
> Lee Revell <[hidden email]> writes:
>
> > Sounds like your card doesn't do hardware mixing.
>
> This is not always enough either. Some cards require exclusive access
> and would not work even though they do hardware mixing. This is the
> case with RME Multiface II.
>

This is a driver limitation not a hardware limitation.

> > Or else fix JACK to play nice with dmix.
>
> Don't you loose something here?. Can jackd still guarantee the same
> realtime deadlines?.
>

Realtime performance should be fine but you have more CPU load.  But the
advantage of dmix being in userspace is that it can use SIMD
instructions, SSE and what not.

The only reason JACK does not play nice with dmix is related to the way
JACK uses the control device so you have to create an .asoundrc or
something.

> > Or get a better soundcard.
>
> The better sound cards require exclusive access, from my
> understanding.
>

What I meant was, if you want hardware mixing get a hardware mixing
soundcard.

Lee



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel