LInet::OnSoundReceived

#include "ltwrappr.h"

L_INT LInet::OnSoundReceived(plConnection, nError, pWaveFormatData, ulWaveFormatSize, pWaveData)

LInet L_FAR * plConnection;

/* instance of a remote computer */

L_INT nError;

/* error code */

LPWAVEFORMATDATA pWaveFormatData;

/* pointer to a WAVEFORMATDATA structure */

L_UINT32 ulWaveFormatSize;

/* size of the WAVEFORMATDATA structure*/

LPWAVEDATA pWaveData;

/* pointer to a WAVEDATA structure */

Overridable function that notifies a computer that sound data has been received.

Parameter

Description

plConnection

Pointer to the instance of the remote computer that sent the sound.

nError

If no error has occurred, nError will be SUCCESS. If nError is < SUCCESS, an error has occurred.

pWaveFormatData

Pointer to the WAVEFORMATDATA structure that contains information about the sound data.

ulWaveFormatSize

Size of the sound data that was sent.

pWaveData

Pointer to a WAVEDATA structure that contains the sound data.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Do not delete any passed pointers.

If this callback function is not derived, the sound will be heard when it is received.

Required DLLs and Libraries

LTNET

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

Class Members

Example

For an example, refer to the NETCAP demo.