![]() |
FirstModulAR 0.1.0
|
Manages voice communication channels and client voice broadcasting. More...
Public Member Functions | |
| override void | OnNetworkSpawn () |
| void | AddVoiceChannel (string channelName) |
| Adds a new voice channel. | |
| void | AddVoiceChannels (string[] channelNames) |
| Adds multiple new voice channels. | |
| void | JoinVoiceChannelServerRpc (byte channelId, ServerRpcParams serverRpcParams=default) |
| Server RPC to join a voice channel. | |
| void | LeaveVoiceChannelServerRpc (ServerRpcParams serverRpcParams=default) |
| Server RPC to leave a voice channel. | |
| override void | OnDestroy () |
Static Public Member Functions | |
| static byte | GenerateVoiceChannelId () |
| Generates a unique ID for a new voice channel. | |
| static void | ServerJoinVoiceChannel (byte channelId, ulong clientId) |
| Adds a client to a voice channel on the server. | |
| static void | ServerLeaveVoiceChannel (byte channelId, ulong clientId) |
| Removes a client from a voice channel on the server. | |
| static VoiceChannel | GetVoiceChannel (byte id) |
| Gets a voice channel by its ID. | |
| static void | AddTranscriptionToChannel (byte channelId, Transcription transcription) |
| Adds a transcription to a voice channel. | |
| static void | PlayJoinSfx () |
| Plays the sound effect for joining a channel. | |
| static void | PlayLeaveSfx () |
| Plays the sound effect for leaving a channel. | |
Static Public Attributes | |
| static VoiceManager | Instance |
Properties | |
| static ConcurrentDictionary< ulong, ClientVoiceBroadcaster > | ClientInstances [get] |
Events | |
| static Action< VoiceChannel[]> | ServerOnVoiceChannelsChanged |
| static Action< VoiceChannel[]> | ClientOnVoiceChannelsChanged |
| static Action< ulong, byte > | ServerOnClientJoinVoiceChannel |
Manages voice communication channels and client voice broadcasting.
|
inlinestatic |
Adds a transcription to a voice channel.
| channelId | The ID of the channel. |
| transcription | The transcription to add. |
|
inline |
Adds a new voice channel.
| channelName | The name of the new channel. |
|
inline |
Adds multiple new voice channels.
| channelNames | Array of channel names to add. |
|
inlinestatic |
Generates a unique ID for a new voice channel.
|
inlinestatic |
Gets a voice channel by its ID.
| id | The ID of the voice channel. |
|
inline |
Server RPC to join a voice channel.
| channelId | The ID of the channel to join. |
| serverRpcParams | Parameters for the server RPC. |
|
inline |
Server RPC to leave a voice channel.
| serverRpcParams | Parameters for the server RPC. |
|
inline |
|
inline |
|
inlinestatic |
Plays the sound effect for joining a channel.
|
inlinestatic |
Plays the sound effect for leaving a channel.
|
inlinestatic |
Adds a client to a voice channel on the server.
| channelId | The ID of the channel to join. |
| clientId | The ID of the client joining the channel. |
|
inlinestatic |
Removes a client from a voice channel on the server.
| channelId | The ID of the channel to leave. |
| clientId | The ID of the client leaving the channel. |
|
static |
|
staticget |
|
static |
|
static |
|
static |