Intel 05-1832-002 IP Phone User Manual


 
416 Voice API for Windows Operating Systems Library Reference — November 2003
dx_SetWaterMark( ) — set water mark for the circular stream buffer
!
!!
! Errors
This function returns -1 in case of error.
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.
!
!!
! 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");
exit(1);
}
if (
dx_SetWaterMark(hBuffer, LOW_MARK, 1024
) < 0)
{
printf("Error setting low water mark \n");
exit(2);
}
if (
dx_SetWaterMark(hBuffer, HIGH_MARK, 31744
) < 0)
{
printf("Error getting setting high water mark \n");
exit(3);
}
if (dx_CloseStreamBuffer(hBuffer) < 0)
{
printf("Error closing stream buffer \n");
}
}
!
!!
! See Also
dx_OpenStreamBuffer( )