This AcquireFrame function waits until a new frame is available and locks it for application processing. The application must call the ReleaseFrame function to release the lock so that the pipeline can process subsequent frames. The application should not invoke lengthy procedures between AcquireFrame and ReleaseFrame.
If wait==false, the AcquireFrame function returns the current status, without blocking the execution.
If the application enables both audio and image processing, the pipeline works in alternating modes between audio and image frames. All audio processing operates with the same sampling rate and all image processing operates with the same frame rate. When the AcquireFrame function returns, the application can use the IsAudioFrame and IsImageFrame functions to determine whether the current frame is an audio frame or an image frame.