Re: [Alsa-user] pcm_min.c trouble with modification

2009-04-20 Thread Clemens Ladisch
MichaƂ Kowalczyk wrote: SND_PCM_FORMAT_U8, //changing this type for any other gives an error in the output: segmentation fault. U8 has one byte per sample; if you try to use a bigger sample format, you have to enlarge the buffer accordingly. 1, //argument responsible for

Re: [Alsa-user] pcm_min.c trouble with modification

2009-04-17 Thread Clemens Ladisch
MK wrote: I want to write a simple ALSA application. I have downloaded pcm_min.c from ALSA documentation and try to do some modifications in code like change channels to stereo or sampling rate to 44100Hz. But every time program fails. Can anybody explain me why this is happening? Please show

Re: [Alsa-user] pcm_min.c trouble with modification

2009-04-10 Thread Sergei Steshenko
On Thu, 9 Apr 2009 18:02:56 -0600 s. keeling keel...@nucleus.com wrote: You'd think grep + sed would be good for the initial change, then you're left with tracking down every instance where that didn't work. At least, that's how I write code (or maintain others' cruft). Too many cooks in

[Alsa-user] pcm_min.c trouble with modification

2009-04-09 Thread MK
Hello. I want to write a simple ALSA application. I have downloaded pcm_min.c from ALSA documentation and try to do some modifications in code like change channels to stereo or sampling rate to 44100Hz. But every time program fails. Can anybody explain me why this is happening?

Re: [Alsa-user] pcm_min.c trouble with modification

2009-04-09 Thread Sergei Steshenko
On Thu, 09 Apr 2009 23:32:59 +0200 MK matern...@o2.pl wrote: Hello. I want to write a simple ALSA application. I have downloaded pcm_min.c from ALSA documentation and try to do some modifications in code like change channels to stereo or sampling rate to 44100Hz. But every time program

Re: [Alsa-user] pcm_min.c trouble with modification

2009-04-09 Thread s. keeling
Incoming from Sergei Steshenko: On Thu, 09 Apr 2009 23:32:59 +0200 MK matern...@o2.pl wrote: I want to write a simple ALSA application. I have downloaded pcm_min.c from ALSA documentation and try to do some modifications in code like change channels to stereo or sampling rate to