ExampleAudio

Purpose

Load and play audio clips.

How to Use

The IAudioSystem allows you to play and manipulate audio clips are runtime.  Use the Play function to play a clip by name. The name must match one of the names of the clips stored in AudioClipCache.

Scene Location & Name

Assets/Ride/Examples/Audio/ExampleAudio.unity

Setup Requirements 

Unity Specific
Add UnityAudioClipCache to a game object in your scene. In the clips array, add the clips from your project that you desire to be loaded and used at runtime.

ExampleAudio Script

Add this script to an object in your scene to enable grouping of agents. Modify as needed to suit your own needs. 

IAudioSystem Script

Referenced by ExampleAudio script for playing clips.  IAudioSystem is the RIDE abstraction for using the engine/runtime’s audio system to load, play, pause, stop, etc audio.  See IAudioSystem 

Scroll Up