[Alsa-devel] Re: Audio and Video sync. Getting Timestamps

2004-05-06 Thread Juan Carlos Granda
That's my app does: 1.- Open the device for capture 2.- Set the access mode SND_PCM_ACCESS_RW_INTERLEAVED 3.- Set format 16 bits (SND_PCM_FORMAT_S16_LE) 4.- Set channels 2 (stereo) 5.- Set buffer time near 1 second 6.- Set period time near 0.1 seconds 7.- Copy the hardware params to alsa 8.- Set

[Alsa-devel] Getting timestamps

2004-05-04 Thread Juan Carlos Granda
Hi,How can i get the timestamp of the frames read with snd_pcm_readi ()

[Alsa-devel] Audio and Video sync. Getting Timestamps

2004-04-27 Thread Juan Carlos Granda
Hi, I'm developing a Multi-thread app for capturing audio+video and i have a few questions. The app is based on 3 threads: - 1 thread for capturing audio using ALSA lib. - 1 thread for capturing video using V4L2. - 1 thread for saving audio+video into an AVI file. Both of capturing