mnGetDataVolume

This command is used to determine the volume of sound data stored in a packet.

Parameters

unsigned short BitsPerSample: The bits per sample of the data stored in the packet. This is the same as the bits per sample of the input instance that retrieved the data.

long long int Packet: The data that the command should use. The content of the packet up to the used size (regardless of the cursor position and memory size) is used.

Returns (Integer)

If BitsPerSample is 8: A number between 0 and 255. The higher the number the higher the volume. 0 is total silence.

If BitsPerSample is 16: A number between 0 and 32767. The higher the number the higher the volume. 0 is total silence.

Present in

DBP

C++

.Net




This page is in the following sections:
(2) Sound Input
(1) Sound Input and Output
(0) DarkNet Help