[LAU] Jack-enabled CLI Player

Kjetil S. Matheussen k.s.matheussen at notam02.no
Sun Aug 2 14:11:16 EDT 2009



On Mon, 3 Aug 2009, Patrick Shirkey wrote:

>> 
>> David Baron:
>> 
>>> What might be a jack-enabled equivalent of:
>>> 
>>> /usr/bin/ogg123 -d alsa<1>   (<1>  is and ogg file, obviously)
>>> 
>>> Preferrable would be something that will play through jack if the daemon 
>>> be
>>> running, alsa not (mplayer can work this way but this is a bit heavy for a
>>> short file play, i.e., a signal from a program).
>>> 
>>>
>>> 
>> 
>> With pulseaudio, you can simply use ogg123, and you
>> don't have to give any special options for ogg123,
>> just write "ogg123<1>" and you'll get sound through
>> jack.
>> 
>> Pulseaudio has amazingly well-working jack audio drivers
>> and alsa interfaces, so finally linux audio works
>> without hassle for all programs all the time.
>> 
>> This is the only modification I had to do to make it work:
>> $ grep jack /etc/pulse/*
>> /etc/pulse/default.pa:load-module module-jack-source
>> /etc/pulse/default.pa:load-module module-jack-sink
>>
>> 
>
>
> Can you please clarify what you did?
>
> Did you add those lines above to a specifc file or did you just run grep and 
> everything magically worked?
>

I added these two lines to /etc/pulse/default.pa:

/etc/pulse/default.pa:load-module module-jack-source
/etc/pulse/default.pa:load-module module-jack-sink

plus executing "yum install pulseaudio-module-jack"

and then everything magically worked.





More information about the Linux-audio-user mailing list