beautypg.com

Sensoray 2224 Windows User Manual

Page 39

background image

MID2226_API int S2226_GetAudioMtrLevel(

int *audl,

int *audr,

HANDLE hdev

);

Get the audio meter's peak amplitude that is decayed over time. Left and right values are 23-bits,
unsigned binary , where 0 indicates the min volume.

Parameters

audl

pointer to the value to receive the left channels current peak

amplitude that is decayed over time.

audr

pointer to the value to receive the right channels current peak

amplitude that is decayed over time.

hdev

handle to device (obtained from S2226_OpenBoard).

Returns

0 on success, negative value if error (see mid2226types.h for error codes list).

MID2226_API int S2226_GetAudioMtr_dB(

int *db_l,

int *db_r,

HANDLE hdev

);

Get the audio meter's peak amplitude, in decibels, that is decayed over time. Left and right values
are 11-bits, unsigned binary, where 0 indicates the max volume. There are 2048 steps of -0.1 db
each.

Parameters

db_l

pointer to the value to receive the left channels current peak

amplitude that is decayed over time in decibels.

db_r

39

This manual is related to the following products: