(Page 67 of 69 in this chapter) Version
adiSubmitRecordBuffer
Description
- Supplies an empty buffer to an asynchronous record operation that was initiated using adiRecordAsync.
Prototype
- DWORD adiSubmitRecordBuffer ( CTAHD ctahd,
void *buffer,
unsigned size)
- ctahd CTA context handle returned by ctaCreateContext.
- buffer Pointer into process memory where recorded voice data will be written.
- size Size of the buffer (bytes).
Return Values
Events
Details
- This function allows the application to asynchronously submit empty buffers to a record operation, provided that the:
- Record operation is active.
- Application does not already have two buffers actively submitted.
- Refer to the ADI Service Developer's Manual for details concerning asynchronous record operations.
Note: The ADI service truncates the size so that the effective size is a multiple of the encoding framesize selected in adiRecordAsync. If the effective size is zero, then CTAERR_BAD_SIZE is returned.
See Also
- adiRecordAsync, adiStopRecording, adiGetRecordStatus
Example
- Refer to the playrec demonstration program.
(Page 67 of 69 in this chapter) Version
Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2000, Natural MicroSystems, Inc. All rights
reserved.