Re: Reading from an output stream

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

 



Hi Bill,

>>> But I can't work out how to make a stream loop back so that it enters and leaves
>>> on the same "side" of ALSA.  For example, if I have some software playing music
>>> from a file, I can route that down to hardware OK.  But I can't seem to route it
>>> back to software so that some other program can read it from ALSA in the same
>>> way that program would read, say, data coming in via a soundcard inputs.
>>>
>>> This seems absolutely basic, so I think I am missing something really obvious.

> I am sorry, but why is this "absolutely basic"? You already have the
> information on the computer. routing it through alsa would seem to be a
> perverse way of getting another copy of that computer.

Please note that this was Andrew's mail that I was quoting to
save on "topic redundancy" in the list (since my question was
related to his question).

With regard to your remark, it is sometimes necessary to route
audio between two audio applications. And since everything is a
file in linux, it seems like a easy task to do with some kind of
FIFO for instance. But then things get complicated very quickly
with OSS being deprecated and ALSA having very little
documentation. Then I find ALSA's developers pointing to JACK as
a better solution. Great, but that is a bit temperamental as well
and now I'm routing audio like this already:

Application 1 --> ALSA --> JACK --> ??? --> Application 2

It looks like a layer cake doesn't it? I've tried very hard but I
could not get it to run in a stable way.

>> I'm working on a project where I want to make an audio connection
>> between two applications. My situation is very similar to Andrew. I
>> would love to have two sound devices that are coupled so that if I play
>> sound into one device, I can record it from the other device and vice
>> versa. Is this possible with ALSA? I've looked at numerous .alsarc

> Run a cable from the output of one sound card to the input of the other.

Thanks for your suggestion but why should I have to install two
sound cards when the data is already inside the computer? Now
that really seems perverse to me :)

And besides, I probably need to have a couple of these sound
devices (multiple simultaneous sessions on one server). So the
most logical thing would be either

A) route things at an alsa-lib level
B) solve things with some kind of dummy soundcard driver in
kernel space

Option A would have my preference for obvious reasons and the
ALSA documentation indicates that it should be possible. So
therefore I repeat my question: how can I set up something like
this?

>> examples but I just can't seem to find and documentation on this subject.
>>
>> I've read about the snd-aloop driver but that did n
>>

> What is "n"?

See my second post which was posted about 4 minutes later, I
accidentally hit 'send' a bit too early.

Anyway, if this is the wrong place to ask this question would you
just please say so? I feel I have offended you in some way and
that was not my intention at all...


-- 
Best regards,
Benjamin                            mailto:benjamin@xxxxxxxxxxx


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux