Al_setbuffersize – Measurement Computing ADLIB WIN User Manual

Page 136

Advertising
background image

Chapter 40 Buffer Handler Functions

27-16

27.15 AL_SetBufferSize

Prototype

C\C++

ERRNUM

AL_SetBufferSize(LHLD

lhld, long lBuffSize);


Visual Basic for Windows

Function

AL_SetBufferSize(ByVal

lhld As Long, ByVal lBuffSize As Long) As Long

LHLD lhld

handle of the LDSD

long lBuffSize

specifies the size of buffer(s)


The AL_SetBufferSize function sets the size of buffer(s) in samples in the LDSD.

The actual size in bytes allocated is a factor of the devices sample size. If a given LDSD requires 2 bytes
per sample and lBuffSize is set to 1000, 2000 bytes would be allocated for each buffer on behalf of the
LDSD.

Parameter Description

lhld

Identifies the instance of the logical device subsystem.


lBuffSize

Specifies the size of buffer(s) required for a hardware subsystem.


Returns:
On success ERRNUM is set to 1, otherwise ERRNUM contains the last error code that occurred during the
call.

Related Functions:
AL_SetNumOfBuffers
AL_GetBufferSize

Supported Logical Device Subsystems:
Pci55xx Series: ADC0, DAC0, DAC1

Advertising