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

[Linrad] Re: ALSA/4Front, Linrad-02.45a



Hi Ermanno,

On Sat, 2008-04-19 at 17:13 +0200, Ermanno F. wrote:
> Hello 
> I am trying the rel. 02.45 with Alsa.
> I have verified that it works with the vers. 1.0.14a of Alsa and not with 1.0.13 (default in Ubuntu 7.04).
> I am trying to send the output of Linrad as input to other applications.
> Alsa is taken as the default output card Delta44 and I can not use it as input while Jack-audio runs.
> Someone knows how to change the default output-sound card that uses Alsa?

Not sure I fully understand the problem.
Anyway maybe these guidelines could help you to solve your problem:
1.First step:  If you have multiple soundcards, the order of the cards
is sometimes changed by ALSA at boot time.
With  Ubuntu 7.10 this can be avoided by appending something like this
in /etc/modprobe.d/alsa-base in order to pin down the index of the
soundcards:

options snd-ice1712 index=1
options snd-hda-intel index=0

2. Second step: In order to make p.e. soundcard 0 your default
soundcard, you can create or modify an .asoundrc file with 
gedit ~/.asoundrc and paste following statements:

pcm.!default {
type hw
card 0
}
ctl.!default {
type hw 
card 0
}

> Someone managed to grab the output of Linrad other programs (trying with Jack audio) ?

I started experimenting with an alsa plugin in Linrad in order to use
jack but without success.
The reason is that in the standard version of ubuntu 7.10 the jack
plugin is broken ( for almost one year now ;-) 
See:
https://bugs.launchpad.net/ubuntu/+source/alsa-lib/+bug/148510
I'll wait until Ubuntu Hardy comes out (april 24 ?) before I  resume
further experiments with jack

On the other hand I succeeded to route the output of Linrad to
Pulseaudio.
Pulseaudio will be the soundserver of Ubuntu 8.04 and has the capability
to accept sound input from one or more sources (processes or capture
devices) and redirecting it to one or more sinks (sound cards, remote
network PulseAudio servers, or other processes).
In other words , with Pulseaudio one should be able to implement a
Virtual Audio Cable to feed other applications with the output of
Linrad.

This is what I've done so far:

1. Setup of Pulseaudio in Ubuntu 7.10 as described in:
https://wiki.ubuntu.com/PulseAudio

2. Modify Linrad-02.45 in order to use an alsa plugin for the output
stream:

In lsetad.c line 1404:
//      sprintf(sndout_plughw_pcm_name,"%s",
alsa_dev_plughw_pcm_name);  //multithreading !!
      sprintf(sndout_plughw_pcm_name,"%s", "default");  //test
pulseaudio
      if ((err = snd_pcm_open(&da_handle, sndout_plughw_pcm_name, 
                                            SND_PCM_STREAM_PLAYBACK, 0))
< 0) 

In lsetad.c line 1469:
//    sprintf(sndout_plughw_pcm_name,"%s",
alsa_dev_plughw_pcm_name);  //multithreading !!
      sprintf(sndout_plughw_pcm_name,"%s", "default");  //test
pulseaudio
    if ((err = snd_pcm_open(&da_handle, sndout_plughw_pcm_name, 
                                           SND_PCM_STREAM_PLAYBACK, 0))
< 0) 


Note: In this case you must remove the ./asoundrc file described in
point 2 above to make it work

Once the output of linrad is captured by Pulseaudfio it should be
possible to make it available to other applications ( on the network )
However, being completely new with Pulseaudio I still haven't figured
out how it should be done.

Maybe other knowledge linrad users with Pulseaudio experience could give
us some guidance on that subject.


73

Pierre /ON5GN




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Linrad" group.
To post to this group, send email to linrad@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to linrad-unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at http://groups.google.com/group/linrad?hl=en
-~----------~----~----~----~------~----~------~--~---

LINRADDARNIL