Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: ExtAudioFileSeek returning -66568 (kExtAudioFileError_InvalidSeek)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ExtAudioFileSeek returning -66568 (kExtAudioFileError_InvalidSeek)



I've been staring at this code for three days now trying to figure out
what I'm doing wrong.  I am attempting to open a WAVE file (2-channel,
44.1 KHz 16-bit signed integer), seek to a point in it, and extract
some of the audio to a separate file after some processing.  I have
done this numerous times in the past without problems, but for some
reason my new code isn't working properly.  Here is what I have (I'm
using 10.5 with gc enabled, although compiling with gc off has no
effect on this particular issue):

I hate to reply to myself, but I've figured out the problem. It appears that ExtAudioFileSeek will fail unless one has specifically set a client data format. So in my case I'm setting it to the same format as the file's data format, which seems unnecessary, but it's required to get things working.


Stephen
_______________________________________________
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




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.