summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-09-08 16:29:30 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-09-08 16:29:30 +0000
commit63e607efcd190f4f27c2f01fbd27559b0c509254 (patch)
tree46816de03963a8c7d487466865b1a47a453e4287
parentfd92f5a06d42dfe8c34c256170d33f6210226109 (diff)
downloadxine-lib-63e607efcd190f4f27c2f01fbd27559b0c509254.tar.gz
xine-lib-63e607efcd190f4f27c2f01fbd27559b0c509254.tar.bz2
increase gap tolerance for non-realtime drivers
CVS patchset: 589 CVS date: 2001/09/08 16:29:30
-rw-r--r--src/audio_out/audio_oss_out.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/audio_out/audio_oss_out.c b/src/audio_out/audio_oss_out.c
index 82b8bf4d7..bfdf68477 100644
--- a/src/audio_out/audio_oss_out.c
+++ b/src/audio_out/audio_oss_out.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: audio_oss_out.c,v 1.37 2001/09/06 15:40:47 joachim_koenig Exp $
+ * $Id: audio_oss_out.c,v 1.38 2001/09/08 16:29:30 guenter Exp $
*
* 20-8-2001 First implementation of Audio sync and Audio driver separation.
* Copyright (C) 2001 James Courtier-Dutton James@superbug.demon.co.uk
@@ -91,6 +91,7 @@
#define ZERO_BUF_SIZE 15360
#define GAP_TOLERANCE 5000
+#define GAP_NONRT_TOLERANCE 15000
#define MAX_GAP 90000
#ifdef CONFIG_DEVFS_FS
@@ -295,7 +296,11 @@ static int ao_oss_bytes_per_frame(ao_driver_t *this_gen)
static int ao_oss_get_gap_tolerance (ao_driver_t *this_gen)
{
- return GAP_TOLERANCE;
+ oss_driver_t *this = (oss_driver_t *) this_gen;
+ if (this->audio_has_realtime)
+ return GAP_TOLERANCE;
+ else
+ return GAP_NONRT_TOLERANCE;
}
static int ao_oss_delay(ao_driver_t *this_gen)