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 channe
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 s
On Thu, 9 Apr 2009 18:02:56 -0600
"s. keeling" 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 the kitchen, w
Incoming from Sergei Steshenko:
> On Thu, 09 Apr 2009 23:32:59 +0200
> 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.
On Thu, 09 Apr 2009 23:32:59 +0200
MK 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 fails.
> Can an
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?