InetReceiveSound2 event (ILEADRasterInet)
void InetReceiveSound2 (short iComputer, short iFormatTag, short iChannels, long lSamplesPerSec, long lAvgBytesPerSec, short iBlockAlign, short iBitsPerSample, short iExtraDataSize, VARIANT pExtraData, VARIANT 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 InetSendSound2 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 InetSendSound2 method.
Events occur in this order:
- InetReceiveStart is generated once.
- InetReceiveSound2 is generated when sound is completely received.
See Also