Hi There,
Is ALSA sound data always from 0 to 255 ? not having negative value if
I used Signed 16 bit little endian PCM format? Previously my buffer
was unsigned char, and then I changed to short int. It does not make
any difference.
The following is my setting,
I used Signed 16 bit little endia
I programmed with a IPC protocol API with ALSA, and when I entered
devices name are malformed and my program crashed and returned the
following message in stderr. I think besides a non-nagative number
returned by snd_pcm_open, this breaks the protocol I am using. Can't
do too much on the other APIs
(int)frames) {
fprintf(stderr,
"short write, write %d frames\n", rc);
}
}
snd_pcm_drain(handle);
snd_pcm_close(handle);
free(buffer);
return 0;
}
Thanks~
Xiaofeng Li
--
Using storage to extend t
Hi There,
I compiled and run a simply playback example that is found in the
following url, and it records/plays back ok in my linux,
http://www.linuxjournal.com/article/6735?page=0,1
This examples demos shows writing 5 secs of binary data to PCM device
to playback. If I have a raw audio file tha