alsa or jack?
Hi,
I'm going to write a program whitch should get the audio-data from 8-10 mono audio channels, and for example save it to a file. Latency is absolutely no problem, but xruns wouldn't be very nice.
My questions:
1. Should I use ALSA directly or via Jack? I remember some people saying Jack would be easyier. Can Jack handle 10 channels?
2. Is it always (i.e. with all soundcards) possible to open the channels in non-interleaved-mode?
Thanks,
Florian Bartels
Signature · 9 lines
GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf
Quoted 10 lines · [email protected] wrote:
Hi,
I'm going to write a program whitch should get the audio-data from 8-10 mono audio channels, and for example save it to a file. Latency is absolutely no problem, but xruns wouldn't be very nice.
My questions: 1. Should I use ALSA directly or via Jack? I remember some people saying Jack would be easyier. Can Jack handle 10 channels?
2. Is it always (i.e. with all soundcards) possible to open the channels in non-interleaved-mode?
Quoted 3 lines
Thanks,
Florian Bartels
JACK can allow you to access multiple channels (pcm devices). The main reasons for using JACK as the default interface are that people who use your app will be able to interact with other apps that support JACK and it will also allow you to get low latency audio performance which is pretty much neccessary for more than two channels.
It has also been reported many times that designing around JACK is easier than using ALSA directly because you don't have to worry about hardware level problems anymore as JACK takes care of that for you. People also say that the code is very well set out and easy to read once you grasp the basic concepts.
Also, If you write your app to access ALSA directly and in the future you decide you would like JACK support, unless you have designed your app around the callback principal you will find it a diffcult task to rewrite your code to work with JACK. If you start with JACK now then your app will use ALSA anyway.
Signature · 12 lines
Patrick Shirkey - Boost Hardware Ltd. For the discerning hardware connoisseur Http://www.boosthardware.com Http://www.boosthardware.com/LAU/guide/ ======================================== ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf