SoundCoverterFillBuffer() and GetMediaSample()
SoundCoverterFillBuffer() and GetMediaSample()
- Subject: SoundCoverterFillBuffer() and GetMediaSample()
- From: "Roni Music" <email@hidden>
- Date: Mon, 9 Jun 2003 08:23:12 +0200
Hi,
There have been some discussions about the SoundCoverter lately on this list, so I ask my question here.
Maybe the QuickTime list is more appropriate since it involves the GetMediaSample() as well?
Anyway, I use SoundCoverterFillBuffer() in conjunction with GetMediaSample() (based on Apple's
example SoundPlayer) to decode AAC/mp4 files. It works fine except for a minor quirk:
My app needs to be able to loop between to points in the file and the strange thing is that the first two times
the sound conversion begins, SoundCoverterFillBuffer() does not return the same samples as from the third
round and on. From the third round and on it always returns the same sample values at a "re-start".
I do call SoundConverterEndConversion() and SoundConverterBeginConversion() when a new loop starts. i.e when
GetMediaSample() is "rewinded". GetMediaSample() then always returns the same sample values but the
SoundCoverterFillBuffer() does not.
btw, this problem only appears with VBR files.
To me it seems the problem is with SoundCoverterFillBuffer() and not with GetMediaSample().
Or am I doing something wrong?
Thanks
Rolf Nilsson
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.