Represents a specific type of audio format, e.g. a synth file or ogg.
Public Member Functions | |
| virtual string[] | GetNames () |
| The set of lowercase file types that this format will handle. More... | |
| virtual bool | InternallyCached (Location path, AudioPackage package) |
| Some formats may cache their result internally. This checks and updates if it has. More... | |
| virtual AudioFormat | Instance () |
| Creates an instance of this format. More... | |
| virtual bool | LoadFromAsset (UnityEngine.Object asset, AudioPackage package) |
| Attempt to load the audio from a Unity resource. More... | |
| virtual bool | LoadData (byte[] data, AudioPackage package) |
| Loads the raw block of data into an object of this format. More... | |
| virtual void | SetPause (bool paused) |
| Change the paused state of the audio. More... | |
| virtual void | Start (Dom.Node context) |
| Called when this audio is expected to start. Note that context may be null. More... | |
| virtual void | Stop () |
| Called when this audio should stop. More... | |
Public Attributes | |
| AudioClip | Clip |
| The clip to use during playback. More... | |
Package Attributes | |
| AudioSource | Source |
| The current source it's being played on. More... | |
Properties | |
| virtual bool | Loaded [get] |
| Is this audio loaded? More... | |
| virtual float | Duration [get] |
| The length of the clip in seconds. More... | |
| virtual float | CurrentTime [get, set] |
| Use this to seek. More... | |
|
inlinevirtual |
The set of lowercase file types that this format will handle.
Reimplemented in PowerUI.OggFormat.
|
inlinevirtual |
Creates an instance of this format.
Reimplemented in PowerUI.OggFormat.
|
inlinevirtual |
Some formats may cache their result internally. This checks and updates if it has.
|
inlinevirtual |
Loads the raw block of data into an object of this format.
|
inlinevirtual |
Attempt to load the audio from a Unity resource.
|
inlinevirtual |
Change the paused state of the audio.
|
inlinevirtual |
Called when this audio is expected to start. Note that context may be null.
|
inlinevirtual |
Called when this audio should stop.
| AudioClip PowerUI.AudioFormat.Clip |
The clip to use during playback.
|
package |
The current source it's being played on.
|
getset |
Use this to seek.
|
get |
The length of the clip in seconds.
|
get |
Is this audio loaded?