I can capture sound to a file from a C program. I can play from the file. But
when i try to playback captured audio directly I get many errors. My code is
while (1) {
int nread;
if ((nread = snd_pcm_readi (capture_handle, buf, BUF_SIZE)) != BUF_SIZE) {
//if ((nread = snd_pcm_readi (
tried both threads opening plug:dmix but as expected it
didn't work, with one thread unable to write.
Is it possible to mix audio streams from two threads using ALSA? Or am I
better off re-designing it as two separate processes?
Thanks
Jan
--
Dr Jan Newmarch
Head of Higher Education (ICT)
> Does this help?
>
> http://docs.oracle.com/javase/tutorial/sound/accessing.html
>
See the JavaSound chapter of my LinuxSound ebook for programs using
these classes at http://jan.newmarch.name/LinuxSound/Sampled/JavaSound/
Jan
--
Dr Jan Newmarch
Head of Higher Education (ICT)
t's so hard to find solutions to
problems.
Yes, I found it a daunting experience. I've got chapters on ALSA,
PulseAudio etc in my ebook on LinuxSound at
http://jan.newmarch.name/LinuxSound/ - hopefully they will be useful to
someone!
Jan
--
Dr Jan Newmarch
Head of Higher Education (ICT)