LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 01-02-2007, 06:00 PM   #1
guldo
Member
 
Registered: Aug 2003
Location: Morio Cho
Distribution: debian sid
Posts: 124

Rep: Reputation: 15
multiple audio applications (JACK)


Hello
I'm trying to run several audio applications at once.
I mean, if I run mplayer and mpg321 at the same time, I can listen to both; there are some applications that cannot work like this though.
Some do not start until the audio device is available, and get hold of the device when they start, so that the device become unavailable.

How can I run those applications at once?
I thought I could use JACK, but I can't understand how am I supposed to use it...

Code:
# jackd -R -d alsa
jackd 0.101.1
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
configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
nperiods = 2 for capture
nperiods = 2 for playback
Code:
# alsaplayer -o jack audio_04.wav
Failed to load output plugin "jack". Trying defaults.
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
snd_pcm_open: Dispositivo o risorsa occupata (default)
Failed to initialize plugin!
/usr/lib/alsaplayer/output/libalsa_out.so failed to load
NOTE: THIS IS THE NULL PLUGIN.      YOU WILL NOT HEAR SOUND!!
Any help?

Linux: 2.6.18
alsa is compiled from source (1.0.13)
Jack is installed from the debian package:
# jackd --version
jackd version 0.101.1 tmpdir /dev/shm protocol 15
 
Old 01-03-2007, 09:04 AM   #2
ronkymac
Member
 
Registered: Nov 2004
Location: Edinburgh, Scotland, UK.
Distribution: Debian all round.
Posts: 72

Rep: Reputation: 15
jack is an audio server: think of it as a patchbay for audio.

the command #jackd ... started up the audio server. Now, all the programs connect through that server. The next step is to route the audio through each application so as to get an output, so the best way to do this is use a frontend. There's a few available, but by far the most popular is QJackCTL - http://qjackctl.sourceforge.net/

install that, and get it running - it's pretty intuitive, but if you need any help then get back to linuxquestions.org.

Regards,
Ronald.
 
Old 01-03-2007, 11:05 AM   #3
guldo
Member
 
Registered: Aug 2003
Location: Morio Cho
Distribution: debian sid
Posts: 124

Original Poster
Rep: Reputation: 15
Thanks for the reply.
So I start jack using that gui; then I run, for example:
# mplayer -ao jack whatever.wav
It works.
But I have two problems:
1) mplayer has a jack option; what can I do with applications that do not have it?
2) sound comes with an annoying noise; don't know why... I tried some values for rate/frames/realtime...
 
Old 01-03-2007, 01:10 PM   #4
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 2,635

Rep: Reputation: 47
There is dmix for ALSA, does the same job. I think it's included with latest ALSA.
 
Old 01-03-2007, 01:21 PM   #5
guldo
Member
 
Registered: Aug 2003
Location: Morio Cho
Distribution: debian sid
Posts: 124

Original Poster
Rep: Reputation: 15
Thanks, that's interesting, too!
Anyway, I still cannot understand how can I use it with any application...
I set up a .asoundrc to use the dmix plug, and tried soon after with aplay; it works fine.
But how can I make any application use it? This I can't understand...
:help:
 
Old 01-03-2007, 02:15 PM   #6
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 2,635

Rep: Reputation: 47
http://www.linuxquestions.org/questi...d.php?t=446651

 
Old 01-03-2007, 06:19 PM   #7
guldo
Member
 
Registered: Aug 2003
Location: Morio Cho
Distribution: debian sid
Posts: 124

Original Poster
Rep: Reputation: 15
Great!
I just had to load the oss modules, start the application via aoss and select the oss device for its output
No need for jack.

Thank you!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using audio jack on my Dell M70's dock jagmarz Linux - Laptop and Netbook 0 06-27-2006 09:29 AM
JACK audio in realtime mode ... not working :o( dreamtheater Mandriva 4 12-10-2005 05:02 AM
I can't get the jack audio library to work! ingar Linux - Newbie 0 01-08-2005 05:06 AM
Jack audio connection kit not working with kernel? linuxpyro Linux - Software 3 04-08-2004 07:04 PM
JACK audio connection kit storyteller Linux - Software 4 11-23-2003 01:35 PM


All times are GMT -5. The time now is 03:26 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration