summaryrefslogtreecommitdiff
path: root/src/xine-engine/audio_out.c
diff options
context:
space:
mode:
authorFrantišek Dvořák <valtri@users.sourceforge.net>2004-09-26 22:54:51 +0000
committerFrantišek Dvořák <valtri@users.sourceforge.net>2004-09-26 22:54:51 +0000
commit9025bf7cc003e8e9981eaf2adc4c614d9bca765c (patch)
tree2788c21b13ec9bfb2fbf2852ae7b4a6c6b764979 /src/xine-engine/audio_out.c
parentc4fcac1273c5be824b7468edcda160c38dec1692 (diff)
downloadxine-lib-9025bf7cc003e8e9981eaf2adc4c614d9bca765c.tar.gz
xine-lib-9025bf7cc003e8e9981eaf2adc4c614d9bca765c.tar.bz2
- almost finalize headers refactoring needed for MSVC frontends (and for other
poor platforms, of course) - fix a bug in generated xine-config for WIN32 and make it relocateable under Windows - MSVC port: update, fix some warnings, remove old unneeded files - improve function for getting runtime directory, it will need next fix yet (bug probably due to active volume drives) CVS patchset: 7001 CVS date: 2004/09/26 22:54:51
Diffstat (limited to 'src/xine-engine/audio_out.c')
-rw-r--r--src/xine-engine/audio_out.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c
index a91911f74..2fa7980c2 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.184 2004/09/01 18:19:50 valtri Exp $
+ * $Id: audio_out.c,v 1.185 2004/09/26 22:54:52 valtri Exp $
*
* 22-8-2001 James imported some useful AC3 sections from the previous alsa driver.
* (c) 2001 Andy Lo A Foe <andy@alsaplayer.org>
@@ -869,7 +869,12 @@ static int resample_rate_adjust(aos_t *this, int64_t gap, audio_buffer_t *buf) {
#endif
/* we want to add factor * num_frames to each buffer */
diff = gap_diff;
+#if _MSCVER <= 1200
+ /* ugly hack needed by old Visual C++ 6.0 */
+ duration = (int64_t)info->window_duration;
+#else
duration = info->window_duration;
+#endif
factor = diff / duration + info->last_factor;
info->last_factor = factor;
@@ -1977,7 +1982,7 @@ xine_audio_port_t *_x_ao_new_port (xine_t *xine, ao_driver_t *driver,
this->eq_j = 2;
this->eq_k = 1;
- bzero (this->eq_data_history, sizeof(sXYData) * EQ_BANDS * EQ_CHANNELS);
+ memset (this->eq_data_history, 0, sizeof(sXYData) * EQ_BANDS * EQ_CHANNELS);
/*
* pre-allocate memory for samples