Re: ExtAudioFileSeek returning -66568 (kExtAudioFileError_InvalidSeek)
Re: ExtAudioFileSeek returning -66568 (kExtAudioFileError_InvalidSeek)
- Subject: Re: ExtAudioFileSeek returning -66568 (kExtAudioFileError_InvalidSeek)
- From: "Stephen F. Booth" <email@hidden>
- Date: Mon, 17 Dec 2007 10:38:56 -0800
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