Re: ExtAudioFile woes
Re: ExtAudioFile woes
- Subject: Re: ExtAudioFile woes
- From: John Weeks <email@hidden>
- Date: Fri, 12 Jun 2015 10:04:05 -0700
Yes, I think I made that change and it finally worked. Don't know why it would be required, and it would be nice if there were a way to get that information from the documentation. But there it is, and my seeks now work. Thanks!
> On 12 Jun 2015, at 9:50 am, Steve Nicholson <email@hidden> wrote:
>
> The client data format has to be set before ExtAudioFileSeek will work (thanks to @sbooth for this info). Add these lines before the call to ExtAudioFileSeek and it will work:
>
> AudioStreamBasicDescription inputFormat;
> UInt32 propSize = sizeof(inputFormat);
> ExtAudioFileGetProperty(_audioFileRef, kExtAudioFileProperty_FileDataFormat, &propSize, &inputFormat);
> ExtAudioFileSetProperty(_audioFileRef,kExtAudioFileProperty_ClientDataFormat, sizeof(AudioStreamBasicDescription), &inputFormat);
>
-John Weeks
WaveMetrics, Inc.
_______________________________________________
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