InetReceiveSound event (ILEADRasterInet)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

void InetReceiveSound (short iComputer, short iFormatTag, short iChannels, long lSamplesPerSec, long lAvgBytesPerSec, short iBlockAlign, short iBitsPerSample, short iExtraDataSize, ILEADRasterVariant*pExtraData, ILEADRasterVariant*pData, long lDataSize);

Overview

Refer to Implementing Internet Functionality.

Remarks

This event is triggered when wave data is received by iComputer. It is generated in response to a remote computer calling the InetSendSound method. The following parameters can be used to update the sound format:

iFormatTag, iChannels, lSamplesPerSec, AvgBytesPerSec, iBlockAlign, iBitsPerSample, iExtraDataSize, pExtraData. pData is the actual sound data that is received. Sound data can be sent to a remote computer by using the InetSendSound method.

Events occur in this order:

- InetReceiveStart is generated once.

- InetReceiveSound is generated when sound is completely received.

See Also

Elements:

InetSendSound method, InetServerInit method, InetConnect method, InetAcceptConnect method, InetAccept event, InetReceiveStart event, InetError event

Topics

Working with Internet Functionality: Sending and Receiving Data