Home |
Function USBAudioWaitDone |
Function USBAudioWaitDoneUSBAudioWaitDone waits until a pending playback or recording transaction completes: int USBAudioWaitDone(int AudioID, void * * Data, int Timeout); ParametersAudioIDAudio ID value previously returned by function USBAudioGetInfo. DataPointer to a pointer which will receive the address of the application's data buffer which has completed. This parameter may be NULL. TimeoutMaximum number of milliseconds to wait. return valueFor playback transactions, this function returns RTU_SUCCESS. For recording, the number of bytes recorded in **Data is returned. On error, a negative error code is returned. If no transactions are pending on the specified audio function, this function returns RTU_NOT_AVAIL immediately. USBAudioWaitDone must be called once for each transaction started with USBAudioPlay or USBAudioRecord. Internally, USBAudioRecord calls RTUIOWaitTimed.
|