Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to set the vaule of AudioTimeStamp structure



Hi, all,

I am going to set the buffer size of input/output audio device using AudioDeviceSetProperty(), and want the setting to be effective immediately. But I have no idea on how to set the parameter AudioTimeStamp. Be more straight, what is the meaning of the field in AudioTimeStamp structure and how to set it?

struct AudioTimeStamp
{
Float64 mSampleTime; // the absolute sample time
UInt64 mHostTime; // the host's root timebase's time
Float64 mRateScalar; // the system rate scalar
UInt64 mWordClockTime; // the word clock time
SMPTETime mSMPTETime; // the SMPTE time
UInt32 mFlags; // the flags indicate which fields are valid
UInt32 mReserved; // reserved, pads the structure out to force 8 byte alignment
};

I still cannot understand the meaning although there are some comments above.

Can anyone give a pointer?

Thanks,

kaiduan

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
_______________________________________________
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.


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.