T
T
Taras Olesnitsky2021-11-16 14:31:16
Sound processing
Taras Olesnitsky, 2021-11-16 14:31:16

How to record 4 channel audio?

There is a sound card with which you CAN get 4-channel sound (4 microphones are connected to the card, it is connected to the computer via USB). Advanced programs like SoundForge record 4 channels simultaneously, verified. The card supports ASIO.
I want to learn how to record 4-channel sound PROGRAMME or with something console, for example, ffmpeg. The first option is preferred.
Tell me how to do this, which API to use, preferably cross-platform, you need Windows and Linux. Or maybe you know a forum where such a question can be asked to specialists.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Armenian Radio, 2021-11-16
@gbg

Under the penguins - Jack
Under the twig - ASIO4ALL

R
rPman, 2021-11-16
@rPman

the coolest console utility (there is a library there) open source, probably supports maximum equipment, cross-platform - it’s ffmpeg
strange that they didn’t try to do it themselves, firstly, the sound parameters will be taken from the system settings (if you select four channels there, then ffmpeg should automatically pick it up by mind) , if anything, you can force which profile : -channel_layout quad -channels 4
if you have Windows, see an example of how to record from a microphone here

G
Griboks, 2021-11-17
@Griboks

If you really want to programmatically, then any library for working with sound cards will do. Personally, I prefer to use the whole python wrapper sounddevice , which allows you to do whatever you want with raw sound.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question