objective c - core audio callback, inTimeStamp at the beginning or end of recording -


in core audio, when recordingcallback called:

static osstatus recordingcallback(void *inrefcon,                                audiounitrenderactionflags *ioactionflags,                                const audiotimestamp *intimestamp,                                uint32 inbusnumber,                                uint32 innumberframes,                                audiobufferlist *iodata) { 

does intimestamp reference time when audio began received or time when audio finished being received.

was

x if x equal time when recording began

or

x + buffer length

thank you,

nonono

the timestamp time when buffer captured, bus time of system (see thread on coreaudio mailing list details). refer time in first sample of buffer, not last sample.


Comments