| DiaSpringWrapperGetAudioStream Method |
Returns the current audio stream collected on the channel since the last StartAudioStream function call.
Namespace: InkostarAssembly: DiaSpringWrapper (in DiaSpringWrapper.dll) Version: 0.0.0.0
Syntaxpublic byte[] GetAudioStream(
string ChannelName,
DiaSpringWrapperCommonStreamFormat StreamFormat
)
Public Function GetAudioStream (
ChannelName As String,
StreamFormat As DiaSpringWrapperCommonStreamFormat
) As Byte()
public:
array<unsigned char>^ GetAudioStream(
String^ ChannelName,
DiaSpringWrapperCommonStreamFormat StreamFormat
)
member GetAudioStream :
ChannelName : string *
StreamFormat : DiaSpringWrapperCommonStreamFormat -> byte[]
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:
ByteThe 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