From owner-freebsd-multimedia Tue Mar 17 08:42:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA20245 for freebsd-multimedia-outgoing; Tue, 17 Mar 1998 08:42:37 -0800 (PST) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from toybox.cc.iastate.edu (toybox.cc.iastate.edu [129.186.142.95]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA20176 for ; Tue, 17 Mar 1998 08:42:26 -0800 (PST) (envelope-from graphix@toybox.cc.iastate.edu) Received: (from graphix@localhost) by toybox.cc.iastate.edu (8.8.7/8.8.7) id KAA07216 for freebsd-multimedia@freebsd.org; Tue, 17 Mar 1998 10:42:19 -0600 (CST) Date: Tue, 17 Mar 1998 10:42:19 -0600 (CST) From: Kent Vander Velden Message-Id: <199803171642.KAA07216@toybox.cc.iastate.edu> To: freebsd-multimedia@FreeBSD.ORG Subject: Flushing audio capture buffer Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I would like to flush the capture buffer of the sound card. I want to do this inorder to have my program stay in sync with the data being captured. At the moment, the program slowly starts to get out of sync as the processing time required by the program for each read buffer is greater than how long before the capture buffer is full again. My program does not have to receive all of the caputured data but it must stay in sync so I am willing to lose some of the data. So what I thought I would do is flush the capture buffer before each read. Can the capture buffer be flushed? Thanks. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message