Re: SoundCoverterFillBuffer() and GetMediaSample()
Re: SoundCoverterFillBuffer() and GetMediaSample()
- Subject: Re: SoundCoverterFillBuffer() and GetMediaSample()
- From: Philippe Wicker <email@hidden>
- Date: Mon, 9 Jun 2003 08:45:33 +0200
On Monday, June 9, 2003, at 08:23 AM, Roni Music wrote:
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?
Hi rolf,
Maybe nothing wrong. There was a recent thread on a similar topic.
Search a post from Steve Hoek "Re: Sample Rate Conversion using
AudioConverter", this may be (a part of) the answer.
Best,
Philippe Wicker
email@hidden
_______________________________________________
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.