TRVCamSender.SourceAudioIndex

<< Click to display table of contents >>

TRVCamSender.SourceAudioIndex

Defines the index of media channel of TRVCamReceiver assigned to VideoSource, which will be used for audio in the default (0th) media channel.

property SourceAudioIndex: Integer;

In the simplest case, sound is read from TRVMicrophone component assigned to AudioSource property. No additional property settings are required (SourceGUID must be empty, SourceAudioIndex must be 0).

But more complex case is possible: this sender is used to re-translate sound received from the network. In this case, sound is taken from TRVCamReceiver component assigned to VideoSource property.

This receiver can receive data from multiple senders, and each sender may send multiple media channels. In this case, you need to specify:

SourceGUID to specify the sender which sends audio to this receiver

SourceAudioIndex to specify media channel of the sender specified in SourceGUID

Example

Let we have TRVCamReceiver which receives data from two senders via the network (either directly, or via TRVMediaServer): TRVCamSender1 and TRVCamSender2.

Each of these source senders has two media channel (0th and 1st)

We want to re-translate sound from the 1st channel of TRVCamSender1.

Our TRVCamSender component and its properties are colored in orange.

sourceaudioindex-scheme

As you can see, we assign SourceGUID property equal to the value of GUIDFrom of TRVCamSender1, and SourceAudioIndex = 1.

TRVCamReceiver component is assigned to VideoSource property.

Multiple media channels

AudioSource/VideoSource, SourceGUID, SourceAudioIndex properties define a sound source for the default (0th) media channel of this TRVCamSender component.

Similarly, VideoSource, SourceGUID, SourceVideoIndex properties define a video source for the default media channel.

More media channels (indexed from 1) can be defined in properties of items of ExtraMediaSources collection property.

Default value

0