Ok, It's resolved. It works well when:
size =1;
signed int value;
while (PERIOD_SIZE-- >0) {
value =(signed char *)samples;
f_write = write(f_open, value, size);
}
And now I can print data form sound card.
But I don't know why, and how it works... I can only guess.
Best wishes
Marek M
Hello!
I write a program that capture the sound and when the buffor of sound card
is full send this by UDP to server. Then server will be calculate the FFT on
this. So I need the samples. So my record_buffor function in capture
program:
static void record_buffor(const snd_pcm_channel_area_t *are
On Mon, 31 Aug 2009, Marek Michalak wrote:
> Hello!
>
> I change the pcm.c program from alsa-lib/test, and capture the sound by
> asynchronic function with mmap. But when I edit recorded file I've got only
> dots like: ..
Sound files are not text files. What are you using to try to
Hello!
I change the pcm.c program from alsa-lib/test, and capture the sound by
asynchronic function with mmap. But when I edit recorded file I've got only
dots like: ..
When I open the file in aplay I have capture sound. How converts this 'dots'
to normal value that I can use in my