JACK Record / Play in C + Ubuntu (GNU / Linux)

It is very difficult to use the "JACK" work in google and programming and audio, most of the results seem to give me Windows tutorials / questions that concern how to connect your audio jack correctly or are there similar to my "Line-in with Audio jack programming" . Be that as it may, I cannot find tutorials on a sound sound system called "JACK", and I need to know how to initialize, display sound cards, select a sound card from this list, and then record and play my input / output data.

So far, my only resources have been as follows for JACK programming .... http://jackit.sourceforge.net/cgi-bin/lxr/http/source/example-clients/capture_client.c http: //www.alsa- project.org/~tiwai/alsa-driver-api/ch01.html#id292665 http://www.alsa-project.org/~tiwai/alsa-driver-api/re01.html

Capture_client.c I think that it was created to work in any situation, so I got confused about what really happens. That is why I hope to find a JACK tutorial. I need RAW audio data, so I can manually encrypt it in packets, so I think I need a JACK scanner. I found that Gstreamer uses only low-level encryption, ALSA is a pain to write code for (required forever), but in fact, although all other audio libraries are just not for my situation or just stink.

+4
source share
2 answers

This is where I study bagan. It compiles and actual code.

0
source

when searching the internet try using jackd (short for daemon daemon).

Jack is primarily intended to combine several applications together into a single signal chain. In this way, the daemon processes the hardware ports, usually using alsa depending on the audio hardware. The daemon sets the sampling frequency and format, the format is always normalized with a floating point, and the sampling frequency is set by the user. This eliminates sample rate and format conversion between applications.

It sounds like you have to think outside the box to make Jackd work for you, or the functionality should be included in the daemon (the jack already has the ability to send audio data over the network, for example) or jackd really just is not suitable for your purposes.

0
source

All Articles