Type Alias

CMSampleBufferMakeDataReadyCallback

Client callback called by CMSampleBufferMakeDataReady.

Declaration

typedef OSStatus (*CMSampleBufferMakeDataReadyCallback)(CMSampleBufferRef sbuf, void *makeDataReadyRefcon);

Parameters

sbuf

The sample buffer to make ready.

makeDataReadyRefcon

Client refcon provided to CMSampleBufferCreate.

For example, it could point at info about the scheduled read that needs to be forced to finish.

Discussion

This callback must make the data ready (e.g. force a scheduled read to finish). If this callback succeeds and returns 0, the sample buffer will then be marked as "data ready".