WwwAudioComponent

Overview

The WWW audio component utilises Unity’s WWW class and in particular its audio support. Using this component it’s possible to play audio clips from a http location or a file that is located in any folder (even outside Resources)

Overview

Inspector Elements

\ \ \ \ \ \ \

Properties

\
\

Description

\

Ignore Virtualization

\

Audio component won’t be virtualized (stopped) according to distance from listener.

\

Don’t Play

\

Audio component won’t play.

\
\

Delay

\

How much to delay (is seconds) \ the component from playing

\

Don’t Stop On Destroy

\

Keeps playing when it’s parent game object is destroyed. The last know position of the game object is used.

\

Loop

\

Pitch value of the component \ multiplied with/by its parent pitch.

\

Is 3D

\

Audio clip to play.

\
\

Is Streaming

\
\

Audio will be streamed and not \ loaded into memory

\

Load On Start

\

Loads audio component start is \ called, if not it will load when is requested to play

\
\

Language Support

\

Enable language support. If set then \ typing “LANGUAGE” anywhere in the audio clip reference will be replaced with \ the name of the language currently selected (i.e. Dialog/LANGUAGE/Greetings.wav will be replaced to Dialog/English/Greetings.wav)

\
\

Audio Type

\

You must set the type of audio file \ that will be played (ACC, AIFF, GCADPCM, IT, MOD, MPEG, OGGVORBIS, S3M, WAV, \ XM, XMA, AUDIOQUEUE)

\

File Location

\

Indicates if the file to be loaded \ is on a file location or Http

\

Audio Clip Reference

\

Full filename and path of the audio \ file to play

\

Status

\

Displays the current status of the \ audio component

-          \ WaitingToPlay

\

-          \ Playing

-          \ WaitingToStop

\

-          \ Stopped

-          \ Paused

-          \ Virtual

-          \ LostFocus

\

Watch the following video explaining more about this Component

https://www.youtube.com/watch?v=IacgUjM9188&list=PLjo4vf11pt-MWtpdnyJdqJ41khf4YhS8y&index=14