diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-10-07 22:44:57 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-10-07 22:44:57 +0000 |
commit | 1e6e682084644ab24c80283490a359206be52b30 (patch) | |
tree | 2b3587280867f39e90f70838c94294605b540bea /src/audio_out/audio_oss_out.c | |
parent | d136f913d0b86928ba4a47e49901912a312048b0 (diff) | |
download | xine-lib-1e6e682084644ab24c80283490a359206be52b30.tar.gz xine-lib-1e6e682084644ab24c80283490a359206be52b30.tar.bz2 |
oss softsync patche provided by bill fink
CVS patchset: 763
CVS date: 2001/10/07 22:44:57
Diffstat (limited to 'src/audio_out/audio_oss_out.c')
-rw-r--r-- | src/audio_out/audio_oss_out.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/audio_out/audio_oss_out.c b/src/audio_out/audio_oss_out.c index cdf1dcf44..c3890c5a2 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.41 2001/10/01 23:04:57 f1rmb Exp $ + * $Id: audio_oss_out.c,v 1.42 2001/10/07 22:44:57 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 @@ -88,6 +88,7 @@ #define GAP_TOLERANCE 5000 #define GAP_NONRT_TOLERANCE 15000 #define MAX_GAP 90000 +#define NOT_REAL_TIME -1 #ifdef CONFIG_DEVFS_FS #define DSP_TEMPLATE "/dev/sound/dsp%d" @@ -116,7 +117,7 @@ typedef struct oss_driver_s { int audio_started; int audio_has_realtime; /* OSS driver supports real-time */ - int static_delay; /* estimated delay for non-realtime drivers */ + struct { char *name; @@ -341,7 +342,7 @@ static int ao_oss_delay(ao_driver_t *this_gen) } } else { - bytes_left = this->static_delay; + return NOT_REAL_TIME; } @@ -735,8 +736,6 @@ ao_driver_t *init_audio_out_plugin (config_values_t *config) { this->output_sample_rate = 0; this->audio_fd = -1; - this->static_delay = config->lookup_int (config, "oss_static_delay", 1000); - this->config = config; this->ao_driver.get_capabilities = ao_oss_get_capabilities; this->ao_driver.get_property = ao_oss_get_property; |