HostCallback_GetTransportState
When called by the system, provides audio transport state and timeline information to an audio unit from a host application.
Declaration
typealias HostCallback_GetTransportState = (UnsafeMutableRawPointer?, UnsafeMutablePointer<DarwinBoolean>?, UnsafeMutablePointer<DarwinBoolean>?, UnsafeMutablePointer<Float64>?, UnsafeMutablePointer<DarwinBoolean>?, UnsafeMutablePointer<Float64>?, UnsafeMutablePointer<Float64>?) -> OSStatusParameters
- inHostUserData:
Custom data that you provided when registering your callback with the audio unit.
- outIsPlaying:
On output,
TRUEif audio is playing, orFALSEotherwise. - outTransportStateChanged:
On output,
TRUEif the transport state changed since the last time the callback was invoked, orFALSEotherwise. - outCurrentSampleInTimeLine:
On output, the sample number, indexed from zero from the beginning of the timeline.
- outIsCycling:
On output,
TRUEif cycling, orFALSEotherwise. - outCycleStartBeat:
- outCycleEndBeat:
Discussion
If you named your callback function MyHostCallback_GetTransportState, you would declare it like this: