Code Snippets M

Short texts M 🧑‍💻 Code snippets M ✍️ Reading lists M 👀

ap_PlayingBackWithAudioUnits_24.m

AudioTimeStamp startTime; memset(&startTime, 0, sizeof(startTime)); startTime.mFlags = kAudioTimeStampSampleTimeValid; startTime.mSampleTime = -1; CheckError(AudioUnitSetProperty(fileAudioUnit, kAudioUnitProperty_ScheduleStartTimeStamp, kAudioUnitScope_Global, 0, &startTime, sizeof(startTime)), “Setting the desired start for the play back to be as soon as possible”);