Re: Converting AudioTimeStamp between two devices
Re: Converting AudioTimeStamp between two devices
- Subject: Re: Converting AudioTimeStamp between two devices
- From: Andrew Kimpton <email@hidden>
- Date: Fri, 2 Jun 2006 07:20:12 -0400
On Jun 2, 2006, at 12:44 AM, Jeff Moore wrote:
From <CoreAudio/CoreAudioTypes.h>:
/*!
@enum Commonly Used Combinations of AudioTimeStamp Flags
@abstract Some commonly used combinations of
AudioTimeStamp flags.
@constant kAudioTimeStampSampleHostTimeValid
The sample frame time and the host time are
valid.
*/
enum
{
kAudioTimeStampSampleHostTimeValid =
(kAudioTimeStampSampleTimeValid | kAudioTimeStampHostTimeValid)
};
So by assigning kAudioTimeStampSampleHostTimeValid to
firstPlayTime.mFlags you are saying that both the sample time and
the host time are valid.
What you really want here is to just say that the host time is
valid, which means just assigning kAudioTimeStampHostTimeValid to
firstPlayTime.mFlags.
D'Oh ! In my defense I think this happened because of XCode auto
completion 8-)
Andrew 8-)
_______________________________________________
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