Click or drag to resize

IAudioImp Interface

Interface for the Audio implementation. The implementation of this interface is responsible for management of all IAudioStreamImp instances. This is used as a container for all the IAudioStreamImp and handles Sound functions globally.

Namespace:  Fusee.Engine.Common
Assembly:  Fusee.Engine.Common (in Fusee.Engine.Common.dll) Version: 0.7.0.0 (0.7.0.0)
Syntax
C#
public interface IAudioImp

The IAudioImp type exposes the following members.

Methods
  NameDescription
Public methodCloseDevice
Implementation Tasks: Closes the device. All instances of IAudioStreamImp derivate have to be disposed in order to free up memory.
Public methodGetVolume
Implementation Tasks: Gets the global volume of the application. In 3D Sound a Listener is usually used to accomplish this task. In 2D Sound an internal master volume property can be implemented that handles all IAudioStreamImp derivates volumes that this instance is responsible for.
Public methodLoadFile
Implementation Tasks: Loads the specified file from an external source (examples: hard drive, network, etc) into memory for usage inside of the application.
Public methodOpenDevice
Implementation Tasks: Opens the device. All IAudioStreamImp derivate instances have to be wiped and the globalvolume of a Listener(if 3D Sound is intended) can be set to maximum.
Public methodSetPanning
Implemenation Tasks: Sets the panning for all IAudioStreamImp derivates that this instance is responsible for.
Public methodSetVolume
Implemenation Tasks: Sets the global volume of the application. In 3D Sound usually a Listener is used to accomplish this task. In 2D Sound a simple iteration through all IAudioStreamImp derivates that this instance is responsible for is sufficient.
Public methodStop
Implementation Tasks: Stops all IAudioStreamImp derivates playbacks that this instance is responsible for.
Top
See Also