enables resampling of audio in ao_macosx by Dan Christiansen

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12789 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nplourde 2004-07-10 00:23:19 +00:00
parent 6696304efe
commit fbfda67d7c
1 changed files with 2 additions and 14 deletions

View File

@ -64,7 +64,7 @@ LIBAO_EXTERN(macosx)
/* 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 @@ static int init(int rate,int channels,int format,int flags)
}
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 =