Click or drag to resize

Audio Class

The Audio class provides all audio functionality. It is accessible from everywhere.
Inheritance Hierarchy
SystemObject
  Fusee.Engine.CoreAudio

Namespace:  Fusee.Engine.Core
Assembly:  Fusee.Engine.Core (in Fusee.Engine.Core.dll) Version: 0.7.0.0 (0.7.0.0)
Syntax
C#
public class Audio

The Audio type exposes the following members.

Constructors
  NameDescription
Public methodAudio
Initializes a new instance of the Audio class
Top
Properties
  NameDescription
Public propertyStatic memberInstance
Provides the Instance of the Audio Class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetVolume
Gets the main volume.
Public methodLoadFile
Loads an audiofile.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetPanning
Sets the panning of all IAudioStreamImps (-100 to +100)
Public methodSetVolume
Sets the main volume (0 to 100)
Public methodStop
Stops all IAudioStreamImps.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
Supported file formats are: mp3, ogg, wav, flac, aiff, au, raw, paf, svx, nist, voc, ircam, w64, mat4, mat5 pvf, htk, sds, avr, sd2, caf, wve, mpc2k, rf64 Audio can be either buffered completely or be played as a stream. E.g. : IAudioStreamImp myAudio1; myAudio1 = Audio.Instance.LoadFile("AssetStorage/Music.ogg"). myAudio1.play();
See Also