ZelloWork Client SDK  2.51
Public Member Functions | Properties | List of all members
IAudioStream Interface Reference

Inherits IDispatch.

Public Member Functions

HRESULT Start ([in] int iSampleRate)
 
HRESULT Stop ()
 
HRESULT WriteSamples ([in] VARIANT vData)
 

Properties

int NativeSampleRate [get]
 

Detailed Description

IAudioStream represents an audio data stream object for integration between a radio gateway and third-party apps.

Member Function Documentation

§ Start()

HRESULT Start ( [in] int  iSampleRate)

Audio stream is starting. Wave format is always mono 16 bits, sample rate may vary. In the case of playing message audio through a third party app, it's called when an incoming message from a contact begins. In the case of sending audio message data coming from a third party app to a contact, it's called when an outgoing message to a contact begins.

Parameters
iSampleRateAudio sample rate.

§ Stop()

HRESULT Stop ( )

Audio stream is stopping. In the case of playing message audio through a third party app, it's called when an incoming message from a contact is over. In the case of sending audio message data coming from a third party app to a contact, it's called when an outgoing message to a contact is over.

§ WriteSamples()

HRESULT WriteSamples ( [in] VARIANT  vData)

Set playback position.

Parameters
vDataSAFEARRAY(short) or IStream holding audio data chunk.

Property Documentation

§ NativeSampleRate

int NativeSampleRate
getproperty

Write audio data.

Parameters
piSampleRateSample rate used by Zello app to send/receive audio