Sensoray 2224 Windows User Manual
Page 38

0 on success, negative value if error (see mid2226types.h for error codes list).
MID2226_API int S2226_GetAudioMtrHold(
int *hld_l,
int *hld_r,
int *clip_l,
int *clip_r,
HANDLE hdev
);
Read the current Audio Meter maximum values being held. Left and right hold values are 11-bits
unsigned binary, where 0 is the max volume. Each step is worth -0.1 db and there are 2048 steps
The clipping values indicate that an audio value was clipped and that the maximum positive or
negative value was detected. (0x7FFFFF or 0x800000 detected after sign extension.)
Parameters
hld_l
pointer to the value to receive the left channels current held
value.
hld_r
pointer to the value to receive the right channels current held
value.
clip_l
pointer to the value that will be set to 1 when clipping is detected
on the left channel.
clip_r
pointer to the value that will be set to 1 when clipping is detected
on the right channel.
hdev
handle to device (obtained from S2226_OpenBoard).
Returns
0 on success, negative value if error (see mid2226types.h for error codes list).
38