Audio Channel

Inherit from EasyManager.cs

using EasyCodeForVivox;

public class VivoxManager : EasyManager
{

}

Inject EasyAudioChannel

using EasyCodeForVivox;
using UnityEngine;
using Zenject;

public class VivoxAudioChannel : MonoBehaviour
{
    EasyAudioChannel _audioChannel;

    [Inject]
    public void Initialize(EasyAudioChannel audioChannel)
    {
        _audioChannel = audioChannel;
    }
}

Toggle Audio in a Channel On/Off

Toggle (turn on/off) Audio/Voice in a channel. A channel must be connected to activate the Audio/Voice capabilities in that channel.

  • Turns Audio/Voice capabilities on for the channel called "3d"

EasyManager

public void ToggleAudioInChannel()
{
    ToggleAudioInChannel("3d", true);
}

EasyAudioChannel

public void ToggleAudioInChannel()
{
    _audioChannel.ToggleAudioInChannel(EasySession.ChannelSessions["3d"], true);
}

Last updated