Click or drag to resize
DiaSpringWrapperGetAudioStream Method
Returns the current audio stream collected on the channel since the last StartAudioStream function call.

Namespace: Inkostar
Assembly: DiaSpringWrapper (in DiaSpringWrapper.dll) Version: 0.0.0.0
Syntax
public byte[] GetAudioStream(
	string ChannelName,
	DiaSpringWrapperCommonStreamFormat StreamFormat
)

Parameters

ChannelName
Type: SystemString
The Channel name on the Dialogic board from which the audio stream is to be retrieved.
StreamFormat
Type: InkostarDiaSpringWrapperCommonStreamFormat
A constant enumerator to specify a stream type of raw PCM or RIFF WAV.

Return Value

Type: Byte
The byte array containing the raw audio stream
Remarks
This function will return an empty byte array if no streaming was requested.
Examples
Collect the audio data streamed through the channel in WAV format
C#: byte[] audiodata = objDevice.GetAudioStream("dxxxB1C1", Inkostar.DiaSpringWrapperCommon.StreamFormat.WAV);
VB.NET: byte[] audiodata = objDevice.GetAudioStream("dxxxB1C1, Inkostar.DiaSpringWrapperCommon.StreamFormat.WAV")
See Also