[Mplayer-cvslog] CVS: main/libao2 ao_macosx.c,1.3,1.4
Nicolas Plourde CVS
syncmail at mplayerhq.hu
Sat Jul 10 02:23:22 CEST 2004
CVS change done by Nicolas Plourde CVS
Update of /cvsroot/mplayer/main/libao2
In directory mail:/var2/tmp/cvs-serv26973/libao2
Modified Files:
ao_macosx.c
Log Message:
enables resampling of audio in ao_macosx by Dan Christiansen
Index: ao_macosx.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_macosx.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ao_macosx.c 6 Apr 2004 17:55:36 -0000 1.3
+++ ao_macosx.c 10 Jul 2004 00:23:19 -0000 1.4
@@ -64,7 +64,7 @@
/* This is large, but best (maybe it should be even larger).
* CoreAudio supposedly has an internal latency in the order of 2ms */
-#define NUM_BUFS 128
+#define NUM_BUFS 16
typedef struct ao_macosx_s
{
@@ -243,19 +243,7 @@
}
ao_msg(MSGT_AO,MSGL_V, "%5d ao->buffer_len\n", (int)ao->buffer_len);
- /* FIXME:
- *
- * Resampling of 32-bit float audio is broken in MPlayer. Refuse to
- * handle anything other than the native format until this is fixed
- * or this module is rewritten, whichever comes first.
- */
- if (ao_data.samplerate == ao->outputStreamBasicDescription.mSampleRate) {
- ao_data.samplerate = (int)ao->outputStreamBasicDescription.mSampleRate;
- } else {
- ao_msg(MSGT_AO,MSGL_WARN, "Resampling not supported yet.\n");
- return 0;
- }
-
+ ao_data.samplerate = ao->outputStreamBasicDescription.mSampleRate;
ao_data.channels = ao->outputStreamBasicDescription.mChannelsPerFrame;
ao_data.outburst = ao_data.buffersize = ao->buffer_len;
ao_data.bps =
More information about the MPlayer-cvslog
mailing list