ExtAudioFileSeek innacurate
ExtAudioFileSeek innacurate
- Subject: ExtAudioFileSeek innacurate
- From: Ian Esten <email@hidden>
- Date: Tue, 08 Feb 2011 09:52:50 -0800
Hi all,
I have been having problem with ExtAudioFileSeek seeking to the wrong location in the file I am reading. This is not to do with the priming buffer size - I compensate for that if it exists. It also happens with uncompressed audio, which has no priming buffer. It happens on both OSX and iOS.
I'll describe the structure of my application. I am using HAL or RemoteIO for output. In a separate thread, I use ExtAudioFileRead to fill a buffer with audio that the HAL/RemoteIO callback reads from.
The problem is that ExtAudioFileSeek is seeking to a location that is 2000+ samples in the future. ExtAudioFileTell, however, reports the location I asked to seek to. In testing this, I modified my ExtAudioFileRead thread in two ways. The first, after calling ExtAudioFileRead, I seek to a location and then seek back to where I should be. I end up 2000+ samples ahead of where I should be. The second, after a call to ExtAudioFileRead I make a single call to ExtAudioFileSeek, requesting a location that is 1 sample different from where I actually am. Again, I end up 2000+ samples in the future. If I do not make the calls to ExtAudioFileSeek, everything plays back fine. Also, if I make a call to ExtAudioFileSeek requesting the location I am at, everything plays back fine too.
I am pretty stuck. I would appreciate any insight offered!
Thanks,
Ian
_______________________________________________
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