Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-18-2015, 05:04 AM   #1
LQ Newbie
Registered: Sep 2015
Posts: 4

Rep: Reputation: Disabled
ALSA c code for capturing and playing back left and right channels or inverting them.


I am using an audio codec shield with intel edison.It appears as an ALSA device.I need example c code to extract left and right channels and replay them back inverted or as it is but independently .I intend to process the left and right channel data.Please tell me how to.
Old 09-19-2015, 01:24 AM   #2
Senior Member
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Old 09-19-2015, 01:48 AM   #3
LQ Newbie
Registered: Sep 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
I have seen some sample code for capture and playback online. They are just 1-2 pages long.I was expecting something simpler.I want to use the code in yocto linux on intel edison. So is there something simpler to just get data pointers to left and right channel audio data?
Old 09-26-2015, 09:36 AM   #4
LQ Newbie
Registered: Sep 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
So I installed jackaudio as you suggested. Now I connected a USB sound card, how shall I loop mic data to its speaker output using jack?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverse left and right audio channels shamgar03 Linux - Newbie 9 03-24-2013 01:42 PM
Combining left and right channels into right, system wide claytonl Linux - Desktop 5 11-24-2010 02:47 PM
SBlive! stereo channels w/ALSA kodon Slackware 1 07-17-2004 08:58 PM
6-channel C-Media 9739 on-board audio chip: only 2 channels playing zidour Linux - Hardware 9 05-23-2004 08:14 PM
SOUND PROBLEM: Inverted left/right channels moving_target Linux - General 0 06-30-2002 07:38 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration