Welcome to the Linux Foundation Forum!

Raw Audio Input ---- finding the device

I'm looking for a way to find the current audio device to get raw input from a receiver plugged into the audio input of any sound board. Someone have a pointer to C/C++ code for doing this?

TIA

clarkw

Comments

  • At the command line check out:

    aplay -h

    arecord -h

    amixer -h

    For examples see:

    http://www.alsa-project.org/main/index.php/Main_Page
  • woboyle
    woboyle Posts: 501
    The ALSA mixer should allow you to specify the input jack to use, such as front panel, line input, mic input, etc. If you have the alsa-lib-devel package installed on your system, then you should be able to use the api's defined in /usr/include/alsa/input.h to record sound in a C/C++ program.

Categories

Upcoming Training