I am new to sound programming for ALSA. I want to Write a program that
simultaneously can capture and play an audio file with the help of
threads and use buffer to store the data while recording and can
simultaneously take data from buffer and play in external device.
I am new to sound programming for ALSA. I want to Write a program that
simultaneously can capture and play an audio file with the help of
threads and use buffer to store the data while recording and can
simultaneously take data from buffer and play in external device.
This [1] was the most useful site I found. I was able to get audio
through working, that is pulling audio in a buffer at a time and
sending it out again. My code is here [2]. Lab a takes audio in and
stores it in a file. Lab b read the file from lab a and play it. Lab
c does the audio through. Lab d passing the audio in to a routine for
processing and then sends it out.
If you are set up for c6run, Lab d will do the processing on the DSP.
From awhile back you said:
" Lab a takes audio in and stores it in a file. Lab b read the file from lab a and play it. Lab c does the audio through. Lab d passing the audio in to a routine for processing and then sends it out. "