[LAD] Opening ALSA devices (hardware and PCM)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linux-Audio-Dev <linux-audio-dev@...>
Date: Monday, June 7, 2010 - 8:45 pm

Good evening everyone!
I was wondering, is there a difference in opening a device like
I've looked in the code of aplay, but small as this tool is, it contains
still a good deal of functionality, so it seems. I've compared it to the other
code in question. there are differences. So now I think it's best to ask and
to guess, which is which and what piece of code, which function signatures are
acutally used for which purpose.
The application is question is chan_alsa from asterisk. So it's quite
limited: configured for 8kHz, 16bit (either se or le) and mono. They use a
fixed periodsize and connected buffer.
I found, that plughw:0,0 acutally let's me here things, if not really
capture input myself, but I'll pounce on that, when it's time.
I want to connect a pcm-device wired to JACK to the asterisk software, yet
it either tells me, that the argument is invalid Plug:pcm.name or plug:name)
or it gets read/write errors or it simply crashes. :-(
I've seen that they use nonblocking mode and interleaved data.
So any suggestions on that?
Warmly yours

Music was my first love and it will be my last (John Miles)

======== FIND MY WEB-PROJECT AT: ========
the Linux TextBased Studio guide
======= AND MY PERSONAL PAGES AT: =======
Linux-audio-dev mailing list

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] Opening ALSA devices (hardware and PCM), Julien Claassen, (Mon Jun 7, 8:45 pm)
Re: [LAD] Opening ALSA devices (hardware and PCM), Clemens Ladisch, (Tue Jun 8, 7:27 am)
Re: [LAD] Opening ALSA devices (hardware and PCM), Julien Claassen, (Tue Jun 8, 10:02 pm)