Re: Jack from CLI [Was: mplayer no go with snd-hdsp]

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

 



On Sat, Sep 27, 2014 at 01:35:52PM -0400, Janina Sajka wrote:
 
> thanks for the quick help response. Comments in line below.
> 
> Fons Adriaensen writes:
> > On Sat, Sep 27, 2014 at 11:46:15AM -0400, Janina Sajka wrote:
> > 
> > > Trying to start jacd from the command line as root I fail for lack of an
> > > X-server.
> > 
> > Unlikely, Jack doesn't need X. But you shouldn't run it as root.
> Glad to hear. I have no desire to run as root, just that some on line docs
> I found seemed to suggest running as root.
> 
> > 
> > > Starting as my ordinary user I get:
> > 
> > What options do you use ? You'll need at least something like
> > 
> > jackd -d alsa -d hw:NNNNNN
> > 
> Tried several. Currently:
> jackd --sync -dalsa -dhw:8
> 
> hw:8 is definitely the Multiface. aplay -D plughw:8 plays there just
> fine.

After having started Jack, in another terminal, run

jack_lsp

which should produce a list of Jack ports for your Multiface.
I you have that it means Jack is definitely running OK.

> > mplayer -ao jack <filename>
> 
> Strangely, this gives me:
> No such audio driver 'jack'
> Could not open/initialize audio device -> no sound.
> 
> This is stock rpmfusion build of mplayer 1.1 for Fedora 20 (x86_64). I'm assuming
> they include jack support in their build?

I begin to suspect they don't...


There is another solution, copy the following to a file
called .asoundrc in your home directory:


pcm.!default {
    type plug
    slave { pcm "jack" }
}

pcm.jack {
    type jack
    playback_ports {
        0 system:playback_1
        1 system:playback_2
    }
    capture_ports {
        0 system:capture_1
        1 system:capture_2
    }
}

ctl.mixer0 {
    type hw
    card 0
}


Then start mplayer without the -ao jack. It should then
use the default ALSA card which we redefined to be a
virtual one connecting to Jack.

Ciao,
                                                                                                                                                      

-- 
FA

A world of exhaustive, reliable metadata would be an utopia.
It's also a pipe-dream, founded on self-delusion, nerd hubris
and hysterically inflated market opportunities. (Cory Doctorow)

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/listinfo/linux-audio-user




[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux