Re: [gentoo-user] Poor mans audio in the world of the great Jack D.

2015-05-22 Thread Emanuele Rusconi
Staring into the dark abyss of the fathomless mysteries,
the humble scholar spake: Shit! I'm out of ideas, dudeā€¦

The .asoundrc snippet works out of the box for me, but I use it just
for Firefox, to be honest, every other audio software
There are more solutions at http://jackaudio.org/faq/routing_alsa.html

Failing that, I don't know. Maybe qsstv does not belong to the ALSA tribe
but to the OSS one, and uses the ALSA OSS emulation, and this prevents
the ALSA jack plugin to work?

-- Emanuele Rusconi



Re: [gentoo-user] Poor mans audio in the world of the great Jack D.

2015-05-20 Thread Emanuele Rusconi
On 19 May 2015 at 17:24,  meino.cra...@gmx.de wrote:

 The master control program (qsstv) raises its shield against Tron, displaying
 Sound card error: Device or resource busy.

 And silence was the only voice heard by the folks...
 And nothing was displayed anymore.

Oops, I forgot the last line of my koan:

pcm.!default { type plug; slave { pcm rawjack } }

-- Emanuele Rusconi



Re: [gentoo-user] Poor mans audio in the world of the great Jack D.

2015-05-20 Thread Meino . Cramer
Emanuele Rusconi ema...@gmail.com [15-05-20 17:36]:
 On 19 May 2015 at 17:24,  meino.cra...@gmx.de wrote:
 
  The master control program (qsstv) raises its shield against Tron, 
  displaying
  Sound card error: Device or resource busy.
 
  And silence was the only voice heard by the folks...
  And nothing was displayed anymore.
 
 Oops, I forgot the last line of my koan:
 
 pcm.!default { type plug; slave { pcm rawjack } }
 
 -- Emanuele Rusconi
 

...and confusion reaches the head of great Jack D. and
from his mouth the words were heard:

#sudo /etc/init.d/jackd restart
 * Starting JACK Daemon ...
 * JACK daemon can't be started! Check logfile: /var/log/jackd.log  
  [ !! ]
 * ERROR: jackd failed to start
[1]6210 exit 1 sudo /etc/init.d/jackd restart

...but none of his words, which were good and wise in the past, were
written down for those who came after him:

#ls -l /var/log/jackd.log
-rw-r--r-- 1 root root 0 2015-05-20 18:18 /var/log/jackd.log

And the children - left alone in the dark of this ancient machine -
stared into the empty LED eyes of their grandmaster not knowing
to where to go and whether to flee or stand still...

Help - Oh help us brotheren of the Gentoo! Help!
they cried.











Re: [gentoo-user] Poor mans audio in the world of the great Jack D.

2015-05-20 Thread Emanuele Rusconi
On 20 May 2015 at 18:23, meino.cra...@gmx.de wrote:

 ...and confusion reaches the head of great Jack D. and
 from his mouth the words were heard:

 #sudo /etc/init.d/jackd restart
  * Starting JACK Daemon ...
  * JACK daemon can't be started! Check logfile: /var/log/jackd.log
 [ !! ]
  * ERROR: jackd failed to start
 [1]6210 exit 1 sudo /etc/init.d/jackd restart

 ...but none of his words, which were good and wise in the past, were
 written down for those who came after him:

 #ls -l /var/log/jackd.log
 -rw-r--r-- 1 root root 0 2015-05-20 18:18 /var/log/jackd.log

 And the children - left alone in the dark of this ancient machine -
 stared into the empty LED eyes of their grandmaster not knowing
 to where to go and whether to flee or stand still...

 Help - Oh help us brotheren of the Gentoo! Help!
 they cried.


How does the ancient seer answer to this cunning riddle?
# sudo lsof /dev/snd/*

From the answer of the oracle we will know where our fate lies,
if the whimsical God of Knowledge will smile upon us.

-- Emanuele Rusconi


Re: [gentoo-user] Poor mans audio in the world of the great Jack D.

2015-05-20 Thread Meino . Cramer
Emanuele Rusconi ema...@gmail.com [15-05-20 19:36]:
 On 20 May 2015 at 18:23, meino.cra...@gmx.de wrote:
 
  ...and confusion reaches the head of great Jack D. and
  from his mouth the words were heard:
 
  #sudo /etc/init.d/jackd restart
   * Starting JACK Daemon ...
   * JACK daemon can't be started! Check logfile: /var/log/jackd.log
  [ !! ]
   * ERROR: jackd failed to start
  [1]6210 exit 1 sudo /etc/init.d/jackd restart
 
  ...but none of his words, which were good and wise in the past, were
  written down for those who came after him:
 
  #ls -l /var/log/jackd.log
  -rw-r--r-- 1 root root 0 2015-05-20 18:18 /var/log/jackd.log
 
  And the children - left alone in the dark of this ancient machine -
  stared into the empty LED eyes of their grandmaster not knowing
  to where to go and whether to flee or stand still...
 
  Help - Oh help us brotheren of the Gentoo! Help!
  they cried.
 
 
 How does the ancient seer answer to this cunning riddle?
 # sudo lsof /dev/snd/*
 
 From the answer of the oracle we will know where our fate lies,
 if the whimsical God of Knowledge will smile upon us.
 
 -- Emanuele Rusconi


(it become really fun to create Koans from problems! Nice 
and positive way to walk down the way to the solution...grin)

While it was calm and silent on the surface of the system and
the spirit of nothing moves across the face of the tasklist,
the ancient seer spake
lsof /dev/snd/*

and an echo from the far answered:
/rootlsof /dev/snd/*
COMMANDPID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
volumeico 4231 mccramer8u   CHR  116,2  0t0 4554 /dev/snd/controlC0
jackd 6539 mccramer  memCHR  116,3  4555 /dev/snd/pcmC0D0p
jackd 6539 mccramer  memCHR  116,4  4556 /dev/snd/pcmC0D0c
jackd 6539 mccramer8u   CHR  116,2  0t0 4554 /dev/snd/controlC0
jackd 6539 mccramer   10u   CHR  116,3  0t0 4555 /dev/snd/pcmC0D0p
jackd 6539 mccramer   11u   CHR  116,4  0t0 4556 /dev/snd/pcmC0D0c
jackd 6539 mccramer   12u   CHR  116,1  0t0 2052 /dev/snd/seq
[1]15019 exit 1 lsof /dev/snd/*

And again the great Jack D. displays its mighty so that all follows
him and no one and nothing leads him.

A lone voice in system he is...







Re: [gentoo-user] Poor mans audio in the world of the great Jack D.

2015-05-20 Thread Emanuele Rusconi
On 20 May 2015 at 19:49, meino.cra...@gmx.de wrote:
 (it become really fun to create Koans from problems! Nice
 and positive way to walk down the way to the solution...grin)

:) I'm afraid my English is not quite up to the task, but it's fun to try.


 While it was calm and silent on the surface of the system and
 the spirit of nothing moves across the face of the tasklist,
 the ancient seer spake
 lsof /dev/snd/*

 and an echo from the far answered:
 /rootlsof /dev/snd/*
 COMMANDPID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
 volumeico 4231 mccramer8u   CHR  116,2  0t0 4554 /dev/snd/controlC0
 jackd 6539 mccramer  memCHR  116,3  4555 /dev/snd/pcmC0D0p
 jackd 6539 mccramer  memCHR  116,4  4556 /dev/snd/pcmC0D0c
 jackd 6539 mccramer8u   CHR  116,2  0t0 4554 /dev/snd/controlC0
 jackd 6539 mccramer   10u   CHR  116,3  0t0 4555 /dev/snd/pcmC0D0p
 jackd 6539 mccramer   11u   CHR  116,4  0t0 4556 /dev/snd/pcmC0D0c
 jackd 6539 mccramer   12u   CHR  116,1  0t0 2052 /dev/snd/seq
 [1]15019 exit 1 lsof /dev/snd/*

 And again the great Jack D. displays its mighty so that all follows
 him and no one and nothing leads him.

 A lone voice in system he is...

It seem so, that no cunning foe is stealing the resource, for the
great Jack D.'s voice to be heard.

So the humble scholar found another word of hope, buried deep within
the arcane tomes:
for the .asoundrc spell, for the rite to be complete
that will allow the foreigners to be heard by Jack D.,
the caster needs an artifact, a mystic scroll from the Great Library,
and that scroll is named /usr/lib/alsa-lib/libasound_module_pcm_jack.so
and can be summoned with the magic words:
# sudo USE=jack emerge -av media-plugins/alsa-plugins

-- Emanuele Rusconi



Re: [gentoo-user] Poor mans audio in the world of the great Jack D.

2015-05-20 Thread Meino . Cramer
Emanuele Rusconi ema...@gmail.com [15-05-21 03:08]:
 On 20 May 2015 at 19:49, meino.cra...@gmx.de wrote:
  (it become really fun to create Koans from problems! Nice
  and positive way to walk down the way to the solution...grin)
 
 :) I'm afraid my English is not quite up to the task, but it's fun to try.
 
 
  While it was calm and silent on the surface of the system and
  the spirit of nothing moves across the face of the tasklist,
  the ancient seer spake
  lsof /dev/snd/*
 
  and an echo from the far answered:
  /rootlsof /dev/snd/*
  COMMANDPID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
  volumeico 4231 mccramer8u   CHR  116,2  0t0 4554 /dev/snd/controlC0
  jackd 6539 mccramer  memCHR  116,3  4555 /dev/snd/pcmC0D0p
  jackd 6539 mccramer  memCHR  116,4  4556 /dev/snd/pcmC0D0c
  jackd 6539 mccramer8u   CHR  116,2  0t0 4554 /dev/snd/controlC0
  jackd 6539 mccramer   10u   CHR  116,3  0t0 4555 /dev/snd/pcmC0D0p
  jackd 6539 mccramer   11u   CHR  116,4  0t0 4556 /dev/snd/pcmC0D0c
  jackd 6539 mccramer   12u   CHR  116,1  0t0 2052 /dev/snd/seq
  [1]15019 exit 1 lsof /dev/snd/*
 
  And again the great Jack D. displays its mighty so that all follows
  him and no one and nothing leads him.
 
  A lone voice in system he is...
 
 It seem so, that no cunning foe is stealing the resource, for the
 great Jack D.'s voice to be heard.
 
 So the humble scholar found another word of hope, buried deep within
 the arcane tomes:
 for the .asoundrc spell, for the rite to be complete
 that will allow the foreigners to be heard by Jack D.,
 the caster needs an artifact, a mystic scroll from the Great Library,
 and that scroll is named /usr/lib/alsa-lib/libasound_module_pcm_jack.so
 and can be summoned with the magic words:
 # sudo USE=jack emerge -av media-plugins/alsa-plugins
 
 -- Emanuele Rusconi
 

:)

And Gentoo folks they are and followed their prophet Emanuele in doing
so and finally found what he was telling them to be found in the great
system.
And the great system shouted out:

[I] media-plugins/alsa-plugins
 Available versions:  1.0.27-r1 ~1.0.27-r3 1.0.28 ~1.0.29 {debug ffmpeg 
jack libsamplerate pulseaudio speex ABI_MIPS=n32 n64 o32 ABI_PPC=32 64 
ABI_S390=32 64 ABI_X86=32 64 x32}
 Installed versions:  1.0.28(19:27:03 04/16/15)(ffmpeg jack libsamplerate 
speex -debug -pulseaudio ABI_MIPS=-n32 -n64 -o32 ABI_PPC=-32 -64 
ABI_S390=-32 -64 ABI_X86=64 -32 -x32)
 Homepage:http://www.alsa-project.org/
 Description: ALSA extra plugins

#locate libasound_module_pcm_jack.so
/usr/lib64/alsa-lib/libasound_module_pcm_jack.so
/usr/lib64/debug/usr/lib64/alsa-lib/libasound_module_pcm_jack.so.debug

But still the great Jack D. keeps its mouth shut and forbid to talk
with alsa tongues.

So the Gentoo folks asked themselves: Does the great system knows
about the alsa-plugins being part of it? Or does the great systems
need even more things to be told?






Re: [gentoo-user] Poor mans audio in the world of the great Jack D.

2015-05-20 Thread Meino . Cramer
Emanuele Rusconi ema...@gmail.com [15-05-21 03:08]:
 On 20 May 2015 at 19:49, meino.cra...@gmx.de wrote:
  (it become really fun to create Koans from problems! Nice
  and positive way to walk down the way to the solution...grin)
 
 :) I'm afraid my English is not quite up to the task, but it's fun to try.
 
 
  While it was calm and silent on the surface of the system and
  the spirit of nothing moves across the face of the tasklist,
  the ancient seer spake
  lsof /dev/snd/*
 
  and an echo from the far answered:
  /rootlsof /dev/snd/*
  COMMANDPID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
  volumeico 4231 mccramer8u   CHR  116,2  0t0 4554 /dev/snd/controlC0
  jackd 6539 mccramer  memCHR  116,3  4555 /dev/snd/pcmC0D0p
  jackd 6539 mccramer  memCHR  116,4  4556 /dev/snd/pcmC0D0c
  jackd 6539 mccramer8u   CHR  116,2  0t0 4554 /dev/snd/controlC0
  jackd 6539 mccramer   10u   CHR  116,3  0t0 4555 /dev/snd/pcmC0D0p
  jackd 6539 mccramer   11u   CHR  116,4  0t0 4556 /dev/snd/pcmC0D0c
  jackd 6539 mccramer   12u   CHR  116,1  0t0 2052 /dev/snd/seq
  [1]15019 exit 1 lsof /dev/snd/*
 
  And again the great Jack D. displays its mighty so that all follows
  him and no one and nothing leads him.
 
  A lone voice in system he is...
 
 It seem so, that no cunning foe is stealing the resource, for the
 great Jack D.'s voice to be heard.
 
 So the humble scholar found another word of hope, buried deep within
 the arcane tomes:
 for the .asoundrc spell, for the rite to be complete
 that will allow the foreigners to be heard by Jack D.,
 the caster needs an artifact, a mystic scroll from the Great Library,
 and that scroll is named /usr/lib/alsa-lib/libasound_module_pcm_jack.so
 and can be summoned with the magic words:
 # sudo USE=jack emerge -av media-plugins/alsa-plugins
 
 -- Emanuele Rusconi
 

After rereading the wise words of the prophet who is Emanuele the
simple Gentoo folks a } was missing in their transcript of the
pergamentum.

And after correcting their unholy fault, great Jack D. was so merciful
to read and uynderstand their pergamentum.

Nonetheless great Jack D. does not talk with people of the alsa tribe.

-- Meino 



Re: [gentoo-user] Poor mans audio in the world of the great Jack D.

2015-05-20 Thread Bruce Schultz
On Thu, May 21, 2015 at 12:59 PM, Bruce Schultz brul...@gmail.com wrote:

 On 21 May 2015 2:23:54 AM AEST, meino.cra...@gmx.de wrote:
 Emanuele Rusconi ema...@gmail.com [15-05-20 17:36]:
  On 19 May 2015 at 17:24,  meino.cra...@gmx.de wrote:
  
   The master control program (qsstv) raises its shield against Tron,
 displaying
   Sound card error: Device or resource busy.
  
   And silence was the only voice heard by the folks...
   And nothing was displayed anymore.
 
  Oops, I forgot the last line of my koan:
 
  pcm.!default { type plug; slave { pcm rawjack } }
 
  -- Emanuele Rusconi
 
 
 ...and confusion reaches the head of great Jack D. and
 from his mouth the words were heard:
 
 #sudo /etc/init.d/jackd restart
  * Starting JACK Daemon ...
 * JACK daemon can't be started! Check logfile: /var/log/jackd.log
  [ !! ]
  * ERROR: jackd failed to start
 [1]6210 exit 1 sudo /etc/init.d/jackd restart
 
 ...but none of his words, which were good and wise in the past, were
 written down for those who came after him:
 
 #ls -l /var/log/jackd.log
 -rw-r--r-- 1 root root 0 2015-05-20 18:18 /var/log/jackd.log
 
 And the children - left alone in the dark of this ancient machine -
 stared into the empty LED eyes of their grandmaster not knowing
 to where to go and whether to flee or stand still...
 
 Help - Oh help us brotheren of the Gentoo! Help!
 they cried.

 Perhaps the great Jack D. Is talking to itself?

 The pcm.!default line says: when opening alsa, connect to rawjack

 The earlier .asoundrc says: when opening alsa rawjack, direct the
 connection to the great Jack D.

 If the jackd connects to the default alsa output, aka rawjack, coult it be
 tripping itself up? Is there maybe a jack option to direct the alsa output
 to the sound hardware instead?


 Looks like I'm off on the wrong track... by default, jack connects to the
hw:0 alsa device, which is the sound hardware.

This page has another example of asoundrc config which might work better
for you.
https://wiki.archlinux.org/index.php/JACK_Audio_Connection_Kit
(search for Playing nice with ALSA)

The config file contents is:

# convert alsa API over jack API
# use it with
# % aplay foo.wav

# use this as default
pcm.!default {
type plug
slave { pcm jack }
}

ctl.mixer0 {
type hw
card 1
}

# pcm type 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
}
}



 --
 :B



Re: [gentoo-user] Poor mans audio in the world of the great Jack D.

2015-05-20 Thread Bruce Schultz
On 21 May 2015 2:23:54 AM AEST, meino.cra...@gmx.de wrote:
Emanuele Rusconi ema...@gmail.com [15-05-20 17:36]:
 On 19 May 2015 at 17:24,  meino.cra...@gmx.de wrote:
 
  The master control program (qsstv) raises its shield against Tron,
displaying
  Sound card error: Device or resource busy.
 
  And silence was the only voice heard by the folks...
  And nothing was displayed anymore.
 
 Oops, I forgot the last line of my koan:
 
 pcm.!default { type plug; slave { pcm rawjack } }
 
 -- Emanuele Rusconi
 

...and confusion reaches the head of great Jack D. and
from his mouth the words were heard:

#sudo /etc/init.d/jackd restart
 * Starting JACK Daemon ...
* JACK daemon can't be started! Check logfile: /var/log/jackd.log  
 [ !! ]
 * ERROR: jackd failed to start
[1]6210 exit 1 sudo /etc/init.d/jackd restart

...but none of his words, which were good and wise in the past, were
written down for those who came after him:

#ls -l /var/log/jackd.log
-rw-r--r-- 1 root root 0 2015-05-20 18:18 /var/log/jackd.log

And the children - left alone in the dark of this ancient machine -
stared into the empty LED eyes of their grandmaster not knowing
to where to go and whether to flee or stand still...

Help - Oh help us brotheren of the Gentoo! Help!
they cried.

Perhaps the great Jack D. Is talking to itself?

The pcm.!default line says: when opening alsa, connect to rawjack

The earlier .asoundrc says: when opening alsa rawjack, direct the connection to 
the great Jack D.

If the jackd connects to the default alsa output, aka rawjack, coult it be 
tripping itself up? Is there maybe a jack option to direct the alsa output to 
the sound hardware instead?



-- 
:B



Re: [gentoo-user] Poor mans audio in the world of the great Jack D.

2015-05-19 Thread Meino . Cramer
Emanuele Rusconi ema...@gmail.com [15-05-19 03:01]:
 On 18 May 2015 at 19:54, meino.cra...@gmx.de wrote:
 
  Hi,
 
  From time to time I come across software, which directly wants
  to talks to good ole' alsa and get kicked by Sensei Jack D. for accessing
  a device, which already is occupied by him...
 
  Is there any way to go or any software to install which enables me to use
  Jack D.'ed software and alsa-acessing without shutting down and
  restarting that grandmaster Jack D. ?
 
  Thanks a lot for any Koan, which will light up my darkened ears!
  Best regards,
  Meino
 
 
 
 
 And so the wise ~/.asoundrc thus spake:
 
 
 ## http://jackaudio.org/faq/routing_alsa.html
 ## http://www.alsa-project.org/main/index.php/Asoundrc
 pcm.jackplug {
 type plug
 slave { pcm rawjack }
 hint { description JACK Audio Connection Kit }
 }
 pcm.rawjack {
 type jack
 playback_ports {
 0 system:playback_1
 1 system:playback_2
 }
 capture_ports {
 0 system:capture_1
 1 system:capture_2
 }
 }
 
 
 -- Emanuele Rusconi
 


Wise the words may sound and nice to hear.
But the shell spake

#qsstv
using visual class 4, id 2b
hijackWindow() context created for QSplashScreen(0x7ffecb5760c0) 1 
Created Window Surface FBO QSize(736, 330) with samples 8 
Card  0 name:  HDA ATI SB 
Card  1 name:  HDA NVidia 
Card  2 name:  HDA NVidia 
ALSA lib 
/var/tmp/portage/media-libs/alsa-lib-1.0.28/work/alsa-lib-1.0.28/src/pcm/pcm_dmix.c:1022:(snd_pcm_dmix_open)
 unable to open slave
Unable to open default: Device or resource busy 
hijackWindow() context created for mainWindow(0x1820730, name = MainWindow) 1 
Created Window Surface FBO QSize(897, 530) with samples 8 

The master control program (qsstv) raises its shield against Tron, displaying 
Sound card error: Device or resource busy.

And silence was the only voice heard by the folks...
And nothing was displayed anymore.









[gentoo-user] Poor mans audio in the world of the great Jack D.

2015-05-18 Thread Meino . Cramer
Hi,

From time to time I come across software, which directly wants
to talks to good ole' alsa and get kicked by Sensei Jack D. for accessing
a device, which already is occupied by him...

Is there any way to go or any software to install which enables me to use
Jack D.'ed software and alsa-acessing without shutting down and
restarting that grandmaster Jack D. ?

Thanks a lot for any Koan, which will light up my darkened ears!
Best regards,
Meino





Re: [gentoo-user] Poor mans audio in the world of the great Jack D.

2015-05-18 Thread Emanuele Rusconi
On 18 May 2015 at 19:54, meino.cra...@gmx.de wrote:

 Hi,

 From time to time I come across software, which directly wants
 to talks to good ole' alsa and get kicked by Sensei Jack D. for accessing
 a device, which already is occupied by him...

 Is there any way to go or any software to install which enables me to use
 Jack D.'ed software and alsa-acessing without shutting down and
 restarting that grandmaster Jack D. ?

 Thanks a lot for any Koan, which will light up my darkened ears!
 Best regards,
 Meino




And so the wise ~/.asoundrc thus spake:


## http://jackaudio.org/faq/routing_alsa.html
## http://www.alsa-project.org/main/index.php/Asoundrc
pcm.jackplug {
type plug
slave { pcm rawjack }
hint { description JACK Audio Connection Kit }
}
pcm.rawjack {
type jack
playback_ports {
0 system:playback_1
1 system:playback_2
}
capture_ports {
0 system:capture_1
1 system:capture_2
}
}


-- Emanuele Rusconi