Skip to contentSkip to conversation

What is the current status of the alsa sound server (signal polling)?

DISCUSSION joy ping 3 participants 6 messages Apr 19, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 000101c1e766$39a37a60$ac1f830a@ico

joy ping

author
#1 lore raw

hi,

im working on a kind of asoundrc-mini-howto, if you are interested in i can send you a pre-version. as i know, polling is not supported with alsa, and its not configurable at runtime.

____
joy

Quoted 23 lines · Ivica Bukvic

Hi all! A while ago I was inquiring about the current status of the .asoundrc documentation, as well as the feasibility of creating "mock" devices that would allow polling of the audio i/o resources of the soundcard whose driver's limitations and/or hardware limitations currently do not support hardware polling.

I am just wondering if anyone had any luck in figuring out how to do that using .asoundrc and whether that is even possible at this point.

Also, what is the current status of gstreamer in this department and jack? (I tried artsd and that one simply doesn't cut it)

Any info on this issue would be utmostly appreciated!

Ico

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#2 lore raw

Thank you for your reply. However, a while ago Paul Davis mentioned there was a "share" device that could potentially be used for this purpose (see:
http://www.mail-archive.com/alsa-user%40lists.sourceforge.net/msg02201.html
), but I am not sure as to how to use it (and whether it is useful at all for this purpose). I also know that there is a framework for a sound-server burried somewhere deep in the Alsa code, but do not know as to how complete it is. But, I would appreciate any info I can get from you (or anyone else regarding asoundrc file), as well as additional info regrading polling abilities with the soundcards that have lousy drivers due to lack of documentation and/or questionable hardware and are therefore unable to provide me with the hardware mixing.

Thank you!

Ico

Quoted 35 lines · joy ping

hi,

im working on a kind of asoundrc-mini-howto, if you are interested in i can send you a pre-version. as i know, polling is not supported with alsa, and its not configurable at runtime.

____
joy

Quoted 23 lines · Ivica Bukvic

Hi all! A while ago I was inquiring about the current status of the .asoundrc documentation, as well as the feasibility of creating "mock" devices that would allow polling of the audio i/o resources of the soundcard whose driver's limitations and/or hardware limitations currently do not support hardware polling.

I am just wondering if anyone had any luck in figuring out how to do that using .asoundrc and whether that is even possible at this point.

Also, what is the current status of gstreamer in this department and jack? (I tried artsd and that one simply doesn't cut it)

Any info on this issue would be utmostly appreciated!

Ico

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#3 lore raw
Quoted 4 lines

you (or anyone else regarding asoundrc file), as well as additional info regrading polling abilities with the soundcards that have lousy drivers due to lack of documentation and/or questionable hardware and are therefore unable to provide me with the hardware mixing.

the term "polling" in not very useful here. all ALSA supported hardware can be "polled" in the sense that a program can stop and wait for it to be ready to read or write from. no hardware support over and above the minimum necessary for basic audio i/o is necessary for this.

i think you're describing something that is generally known as "multi-open", in which the hardware supports multiple independent (but generally synchronous) streams of audio data to be possible, and each process that opens the device gets a new stream. the streams are mixed in hardware before being delivered to the physical outputs.

i am not sure how "polling" (of any kind) relates to this. care to explain?

--p

author
#4 lore raw
In reply to Ivica Bukvic

i think there are two share devices in alsa-lib or with very similar names.
1. share device
2. shm (shared memory device)

what the share device is good for? i dont know, and it doesn't worked for me. i think i tried it only with the current tarbal and not with cvs-version.
the shm-device works in conjunction with aserver i set up a sample configuration to try it out, look in the html-file attached with this mail, but aserver doesnt support concurrent streams to one hardware-channel, i got an error from aserver trying to write to a currently open device, such as 'device is busy' or so. maybe depends on the souncard-driver, dont know, didnt had time to look into the source.

____
joy

Quoted 62 lines · Ivica Bukvic

Thank you for your reply. However, a while ago Paul Davis mentioned there was a "share" device that could potentially be used for this purpose (see:
http://www.mail-archive.com/alsa-user%40lists.sourceforge.net/msg02201.html
), but I am not sure as to how to use it (and whether it is useful at all for this purpose). I also know that there is a framework for a sound-server burried somewhere deep in the Alsa code, but do not know as to how complete it is. But, I would appreciate any info I can get from you (or anyone else regarding asoundrc file), as well as additional info regrading polling abilities with the soundcards that have lousy drivers due to lack of documentation and/or questionable hardware and are therefore unable to provide me with the hardware mixing.

Thank you!

Ico

Quoted 35 lines · joy ping

hi,

im working on a kind of asoundrc-mini-howto, if you are interested in i can send you a pre-version. as i know, polling is not supported with alsa, and its not configurable at runtime.

____
joy

Quoted 23 lines · Ivica Bukvic

Hi all! A while ago I was inquiring about the current status of the .asoundrc documentation, as well as the feasibility of creating "mock" devices that would allow polling of the audio i/o resources of the soundcard whose driver's limitations and/or hardware limitations currently do not support hardware polling.

I am just wondering if anyone had any luck in figuring out how to do that using .asoundrc and whether that is even possible at this point.

Also, what is the current status of gstreamer in this department and jack? (I tried artsd and that one simply doesn't cut it)

Any info on this issue would be utmostly appreciated!

Ico

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#5 lore raw
In reply to a message not in the archive
Quoted 2 lines

Also, what is the current status of gstreamer in this department and jack? (I tried artsd and that one simply doesn't cut it)

jack allows any number of applications to use a single audio interface, up to a run-time configurable limit imposed by the total maximum number of "ports" in the JACK system. the default is 128 ports, but any number is theoretically OK.

--p

#6 lore raw
In reply to a message not in the archive

I meant to add:

Quoted 1 line

Also, what is the current status of gstreamer in this department and

gstreamer has nothing to do with this. gstreamer is an internal architecture/framework for a single application and has nothing to do with sharing audio interfaces or audio data with other processes.

--p