pjmedia_aud_rec_cb typedef

pjmedia_aud_rec_cb = Pointer<NativeFunction<pj_status_t Function(Pointer<Void> user_data, Pointer<pjmedia_frame> frame)>>

This callback is called by recorder stream when it has captured the whole packet worth of audio samples.

@param user_data User data associated with the stream. @param frame Captured frame.

@return Returning non-PJ_SUCCESS will cause the audio stream to stop

Implementation

typedef pjmedia_aud_rec_cb = ffi.Pointer<
    ffi.NativeFunction<
        pj_status_t Function(ffi.Pointer<ffi.Void> user_data,
            ffi.Pointer<pjmedia_frame> frame)>>;