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

2012-08-15 Thread Clemens Ladisch
Jan Newmarch wrote: > 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. Both devices' clocks must be synchronized (this is usually the case only if they are on the same card), and to avoid underruns, yo

[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 (

Re: [Alsa-user] Kernel 3.5 and M-Audio FTU

2012-08-15 Thread Daniel Mack
On 13.08.2012 19:46, Felix Homann wrote: > Am 13.08.2012 16:59, schrieb Robert M. Albrecht: >> I can't play audio on the FTU. >> >> [...] >> >> aplay -c 2 -D hw:0,0 test24.wav >> Wiedergabe: WAVE 'test24.wav' : Signed 24 bit Little Endian in 3bytes, >> Rate: 44100 Hz, stereo >> aplay: set_params:10