ExtAudioFileRead returns empty frames
ExtAudioFileRead returns empty frames
- Subject: ExtAudioFileRead returns empty frames
- From: Christian <email@hidden>
- Date: Mon, 12 Mar 2007 02:56:10 +0100
Hi!
Another newbie trying to understand the quirks of Core Audio here =)
I'm trying to read and play an audio file with ExtendedAudioFile and
MTCoreAudio. The code is split into quite a number of methods and
classes, so I'll just give you the basic procedure:
1. Retrieve the default output device and it's stream description
2. Open the audio file and set the client format property to the
output device's stream description
3. Create an AudioBufferList with MTAudioBufferListNew()
4. Pass the buffer list to ExtAudioFileRead()
What boggles me is that I get no errors whatsoever along the way, not
even when calling ExtAudioFileRead. However, when I peek at the buffer
held by the AudioBufferList, it's still all zeros, despite
ExtAudioFileRead claiming to have read a bunch of frames. I've tried
reading both MP3 (CBR) and WAV with no difference.
Thankful for any help
/Christian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden