LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-28-2011, 11:42 AM   #1
somnum
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Rep: Reputation: 0
Getting all programs that use sound to use the JACK driver (through alsa or oss)


Hi there, I recently had a thread in which I was trying to get my firewire soundcard (Presonus Firepod) to work located here http://www.linuxquestions.org/questi...-linux-864408/

I reinstalled backtrack, and now have it working, except, it only works in a few things, there are many programs that don't recognize JACK (for instance, Firefox).

Now, I have downloaded and installed libjackasyn0 which allows me to run, for example
Code:
jacklaunch mplayer file.avi
and a program that accepts OSS will supposedly route it through JACK. And in fact, that works for mplayer. I still get some error messages though, this is the output:
Code:
jacklaunch mplayer example.avi
MPlayer 1.0rc2-4.3.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (Family: 15, Model: 2, Stepping: 4)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing example.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  624x352  24bpp  23.976 fps  1302.8 kbps (159.0 kbyte/s)
Clip info:
 Software: transcode-1.0.4
xscreensaver_disable: Could not find XScreenSaver window.
[VO_XV] Could not grab port 57.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
AO: [pulse] Failed to connect to server: Connection refused
[AO_ALSA] alsa-lib: confmisc.c:768:(parse_card) cannot find card '0'
[AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file o
r directory
[AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_concat returned error: No such file or dir                        ectory
[AO_ALSA] alsa-lib: confmisc.c:1251:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or dire                        ctory
[AO_ALSA] alsa-lib: conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2196:(snd_pcm_open_noupdate) Unknown PCM default
[AO_ALSA] Playback open error: No such file or directory
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:768:(parse_card) cannot find card '0'
[AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file o                        r directory
[AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_concat returned error: No such file or dir                        ectory
[AO_ALSA] alsa-lib: confmisc.c:1251:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or dire                        ctory
[AO_ALSA] alsa-lib: conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2196:(snd_pcm_open_noupdate) Unknown PCM default
[AO_ALSA] Playback open error: No such file or directory
[AO ARTS] can't connect to aRts soundserver
[AO ESD] esd_open_sound failed: Connection timed out
AO: [pulse] Failed to connect to server: Connection refused
AO: [jack] 88200Hz 2ch floatle (4 bytes per sample)
Starting playback...
VDec: vo config request - 624 x 352 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
VO: [xv] 624x352 => 624x352 Planar YV12
A:  25.1 V:  25.1 A-V:  0.007 ct: -0.032 603/603 29%  1% 14.8% 12 0

However, when I try and run
Code:
jacklaunch firefox
I am still not able to get sound in Firefox.

I have also downloaded and installed libio2jack0, which reads:

"oss/alsa to jack porting lib - runtime files
A library that allows for simple porting of general purposed bio (blocked
io) OSS/ALSA audio applications to Jack.

oss/alsa to jack porting lib - runtime files"

However I am unsure of how to make that work. Does anyone have any ideas of how I can enable libio2jack0, or does anyone have any other ideas as to how I might accomplish this?

Thanks for your help so far, I'm getting there, and I really appreciate it!
 
Old 02-28-2011, 05:16 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, Why do you need jack?

For instance, jack is a transport control sequencer,

it starts multiple applications when you click the play button.

Of course Jack has other parameters,

but I can't see a need for it in everyday browsing and file managing.

Please enlighten me....

I use jackd and qjackctl as it's gui. But only when I am recording, and or preparing to record my performance, using midi backing, hydrogen drums and rosegarden backing sounds (horns, strings, piano), ardour and qsynth that need to be started/play at once.

But for everyday use, jack is not loaded.

oss is depreciated in the kernel, it is no longer required with newer distributions/and kernels.

So, My way to help is, don't use jack with firefox.

If you have a Pulse server it should do that automagically.

see how you go, regards Glenn
 
Old 03-03-2011, 11:12 AM   #3
somnum
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Original Poster
Rep: Reputation: 0
I need to use JACK because I have a firewire soundcard (Presonus Firepod), and I use the Libfreebob Driver with it. I thought that was necessary? My firepod only 'turns blue' and plays sound once I load JACK using qjackctl.
I'm horribly ignorant about the whole thing though.
 
Old 03-03-2011, 05:28 PM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Well, if it works, well and good...

But I have not come across this usage before. Especially for playback only.

afaik, you don't need jack,

unless you want to control many programs to start on time with each other.

Like a drum machine (HydrogenDrums), and a midi player (RoseGarden), and a recorder (Ardour/Audacity) for recording my vocals and guitar.

All the best, Glenn
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound Problems (headphone jack) with Alsa specialist125 Linux - Laptop and Netbook 5 03-11-2007 11:50 PM
problem with ALSA, no sound through alsa, oss works SB Live! 5.1 Michalxo Linux - Hardware 2 01-21-2007 05:24 AM
Linux sound - oss/alsa/arts/esd/jack - AAAARGH dcs3jah Linux - Software 3 08-07-2006 05:44 PM
SUSE 10.0 (OSS) - Sound cards/hydrogen/jack... basically multimedia! JustInterested SUSE / openSUSE 15 04-27-2006 08:54 PM
ALSA-oss compatability works, but not programs intended for alsa ? qwijibow Linux - Software 5 03-14-2004 07:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:14 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration