Component responsible for recording and playback of voice over network.
More...
|
void | OnCapture (BaseTransceiver transmitter) |
| Event polled each frame while component is recording audio.
|
|
void | OnReceive (int playerId, BaseTransceiver receiver, int frequency, float quality) |
| Event invoked when component receives audio data for playback.
|
|
Component responsible for recording and playback of voice over network.
◆ GetCommMethod()
proto external ECommMethod VoNComponent.GetCommMethod |
( |
| ) |
|
◆ GetTransmitRadio()
◆ OnCapture()
Event polled each frame while component is recording audio.
- Parameters
-
transmitter | Transceiver used. Null if only direct speech. |
Implemented in SCR_VoNComponent.
◆ OnReceive()
void VoNComponent.OnReceive |
( |
int |
playerId, |
|
|
BaseTransceiver |
receiver, |
|
|
int |
frequency, |
|
|
float |
quality |
|
) |
| |
|
protected |
Event invoked when component receives audio data for playback.
- Parameters
-
playerId | Senders PlayerId |
receiver | Receiving transceiver |
frequency | Frequency in kHz, on which the transmission came from. Can be different from the frequency which transceiver have set. This is very questionable and could be changed in future. |
quality | Value in range <0,1> describing quality of the transmission |
Implemented in SCR_VoNComponent.
◆ SetCapture()
proto external bool VoNComponent.SetCapture |
( |
bool |
isCapturing | ) |
|
Request to starts/stop audio capturing.
- Returns
- if the request suceeded
◆ SetCommMethod()
proto external void VoNComponent.SetCommMethod |
( |
ECommMethod |
type | ) |
|
Sets communication method used.
◆ SetTransmitRadio()
proto external void VoNComponent.SetTransmitRadio |
( |
BaseTransceiver |
transceiver | ) |
|
Sets the transceiver used for VoN transmission.
◆ SoundEventPriority()
proto external void VoNComponent.SoundEventPriority |
( |
string |
eventname, |
|
|
array< float > |
values, |
|
|
int |
priority, |
|
|
bool |
ignoreQueue = false |
|
) |
| |
Transfer AI sound message through VoN.
The documentation for this interface was generated from the following file:
- Game/generated/Components/VoNComponent.c