summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Koenig <joachim_koenig@users.sourceforge.net>2001-09-12 22:00:51 +0000
committerJoachim Koenig <joachim_koenig@users.sourceforge.net>2001-09-12 22:00:51 +0000
commit436000020930b0ce16be4a34fae8ff5df28450a5 (patch)
treedbc9f1b6318e3b75ea4ee2b54ab63eb768691bf0
parent131676c0f80f073a2f6cd9d4660fe58affb55f46 (diff)
downloadxine-lib-436000020930b0ce16be4a34fae8ff5df28450a5.tar.gz
xine-lib-436000020930b0ce16be4a34fae8ff5df28450a5.tar.bz2
DTS patches from Michiel Toneman
CVS patchset: 626 CVS date: 2001/09/12 22:00:51
-rw-r--r--src/xine-engine/audio_out.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c
index a963dc4b3..20fd26876 100644
--- a/src/xine-engine/audio_out.c
+++ b/src/xine-engine/audio_out.c
@@ -17,7 +17,7 @@
* along with self program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: audio_out.c,v 1.16 2001/09/11 23:02:47 guenter Exp $
+ * $Id: audio_out.c,v 1.17 2001/09/12 22:00:51 joachim_koenig Exp $
*
* 22-8-2001 James imported some useful AC3 sections from the previous alsa driver.
* (c) 2001 Andy Lo A Foe <andy@alsaplayer.org>
@@ -182,7 +182,7 @@ static void ao_fill_gap (ao_instance_t *this, uint32_t pts_len) {
num_frames = pts_len * this->frames_per_kpts / 1024;
- if (this->mode == AO_CAP_MODE_A52) return; /* FIXME */
+ if ((this->mode == AO_CAP_MODE_A52) || (this->mode == AO_CAP_MODE_AC5)) return; /* FIXME */
printf ("audio_out: inserting %d 0-frames to fill a gap of %d pts\n",num_frames, pts_len);
@@ -273,7 +273,7 @@ static int ao_write(ao_instance_t *this,
delay = 0;
/* External A52 decoder delay correction */
- if (this->mode==AO_CAP_MODE_A52)
+ if ((this->mode==AO_CAP_MODE_A52) || (this->mode==AO_CAP_MODE_AC5))
delay+=10;
buffer_vpts += delay * 1024 / this->frames_per_kpts;
@@ -315,7 +315,7 @@ static int ao_write(ao_instance_t *this,
/*
* resample and output frames
*/
- if (this->mode == AO_CAP_MODE_A52)
+ if ((this->mode == AO_CAP_MODE_A52) || (this->mode == AO_CAP_MODE_AC5))
bDropPackage=0;
if (!bDropPackage) {
@@ -381,7 +381,7 @@ static int ao_write(ao_instance_t *this,
/* ac3 seems to be swabbed data */
swab(output_frames,this->frame_buffer+4, 2014 );
- this->driver->write(this->driver, this->frame_buffer, 1012);
+ this->driver->write(this->driver, this->frame_buffer, 1024);
break;