AudioInteraction
This component is used to send and receive audio from the server.
Inspector Variables
Variable | Description |
---|
Character | The InworldCharacter that it is attached to |
Playback Source | The AudioSource that it is referred to |
Properties
Property | Type | Description |
---|
Character | InworldCharacter | Gets or sets an attached Inworld Character |
PlaybackSource | AudioSource | Gets or sets the audio source for playback |
IsPlaying | Bool | Get if the playback source is playing |
CurrentChunk | AudioChunk | Get the current playing audio chunk |
Events
Event | Type | Description |
---|
OnAudioStarted | Action<PacketId> | Triggered when a piece of audio source started |
OnAudioFinished | Action<InworldPacket> | Triggered when a piece of audio source finished playing |
API
Function | Return Type | Description | Parameters |
---|
Clear | void | Call this function to clean up the cached queue | N/A |