[Alsa-user] Playback of captured audio has many errors

2012-08-15 Thread Jan Newmarch
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 (

[Alsa-user] Multiple threads writing to one card

2013-08-19 Thread Jan Newmarch
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)

Re: [Alsa-user] Not able to play multiple audio files

2013-11-30 Thread Jan Newmarch
> 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)

[Alsa-user] Alsa documentation (was I think that the current state of ALSA is poor)

2013-12-01 Thread Jan Newmarch
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)