Skip to contentSkip to conversation

Callback after a specified number of samples

DISCUSSION Wolfgang Hesseler 2 participants 2 messages Sep 29, 2002

lore
Share & tools
lore
#0 lore raw

Hello,
is it possible to get a callback after a specified number of samples (e.g. 4000) are played?
I'd like to refill the buffer then and need the exact number to synchronize audio and video.

Signature · 9 lines
Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX wählen -
und tolle Preise absahnen! http://www.onlinestar.de



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#1 lore raw
Quoted 5 lines · Wolfgang Hesseler

Hello,
is it possible to get a callback after a specified number of samples (e.g. 4000) are played?
I'd like to refill the buffer then and need the exact number to synchronize audio and video.

Look to alsa-lib/test/pcm.c and "async" method.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project http://www.alsa-project.org
SuSE Linux http://www.suse.com

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf