Intel 05-1832-002 User Manual
![Intel](https://files.manualsbrain.com/attachments/5a71b1e7f60391972dadeef20435931cbf4621a5/common/fit/150/50/86c99b5f14aeb2708e9a9e1b5305af4ccf882c1af0155dad25413c2ed84e/brand_logo.png)
Voice API for Windows Operating Systems Library Reference — November 2003
357
reset internal data for a circular stream buffer — dx_ResetStreamBuffer( )
dx_ResetStreamBuffer( )
reset internal data for a circular stream buffer
!
!
!
! Description
The dx_ResetStreamBuffer( ) function resets the internal data for a circular stream buffer,
including zeroing out internal counters as well as the head and tail pointers. This allows a stream
buffer to be reused without having to close and open the stream buffer. This function will report an
error if the stream buffer is currently in use (playing).
including zeroing out internal counters as well as the head and tail pointers. This allows a stream
buffer to be reused without having to close and open the stream buffer. This function will report an
error if the stream buffer is currently in use (playing).
!
!
!
! Cautions
You cannot reset or delete the buffer while it is in use by a play operation.
!
!
!
! Errors
This function returns -1 when the buffer is in use by a play operation.
Unlike other voice API library functions, the streaming to board functions do not use SRL device
handles. Therefore, ATDV_LASTERR( ) and ATDV_ERRMSGP( ) cannot be used to retrieve
error codes and error descriptions.
handles. Therefore, ATDV_LASTERR( ) and ATDV_ERRMSGP( ) cannot be used to retrieve
error codes and error descriptions.
!
!
!
! Example
#include <srllib.h>
#include <dxxxlib.h>
main()
{
int nBuffSize = 32768;
int hBuffer = -1;
if ((hBuffer = dx_OpenStreamBuffer(nBuffSize)) < 0)
{
printf("Error opening stream buffer \n");
Name:
int dx_ResetStreamBuffer(hBuffer)
Inputs:
int hBuffer
•
stream buffer handle
Returns:
0 if successful
-1 if failure
-1 if failure
Includes:
srllib.h
dxxxlib.h
dxxxlib.h
Category:
streaming to board
Mode:
synchronous
Platform:
DM3
Parameter
Description
hBuffer
specifies the circular stream buffer handle