Table of Contents

Class AudioSystem

Namespace
Stride.Audio
Assembly
Stride.Engine.dll

The Audio System. It creates an underlying instance of AudioEngine.

public class AudioSystem : GameSystemBase, IDisposable, ICollectorHolder, IGameSystemBase, IComponent, IReferencable, IUpdateable, IDrawable, IContentable, IAudioEngineProvider
Inheritance
AudioSystem
Implements
Inherited Members
Extension Methods

Constructors

AudioSystem(IServiceRegistry)

Create an new instance of AudioSystem

public AudioSystem(IServiceRegistry registry)

Parameters

registry IServiceRegistry

The service registry in which to register the AudioSystem services

Properties

AudioEngine

The underlying AudioEngine.

public AudioEngine AudioEngine { get; }

Property Value

AudioEngine

The audio engine.

RequestedAudioDevice

public AudioDevice RequestedAudioDevice { get; set; }

Property Value

AudioDevice

Methods

Destroy()

Disposes of object resources.

protected override void Destroy()

Initialize()

This method is called when the component is added to the game.

public override void Initialize()

Remarks

This method can be used for tasks like querying for services the component needs and setting up non-graphics resources.

Update(GameTime)

This method is called when this game component is updated.

public override void Update(GameTime gameTime)

Parameters

gameTime GameTime

The current timing.