Skip to main content
Version: 1.0.0-preview.38

Velaptor.Content.Audio

Velaptor

Velaptor.Content

Audio Class

A single audio that can be played, paused etc.

public sealed class Audio :
Velaptor.Content.IAudio,
Velaptor.Content.IContent,
System.IDisposable

Inheritance System.Object → Audio

Implements IAudio, IContent, System.IDisposable

Properties

BufferType

A single audio that can be played, paused etc.

public Velaptor.Content.AudioBuffer BufferType { get; }

Implements BufferType

Property Value

AudioBuffer

FilePath

A single audio that can be played, paused etc.

public string FilePath { get; }

Implements FilePath, FilePath

Property Value

System.String

Id

Gets the unique ID of the audio.

public uint Id { get; set; }

Implements Id

Property Value

System.UInt32

IsLooping

A single audio that can be played, paused etc.

public bool IsLooping { get; set; }

Implements IsLooping

Property Value

System.Boolean

IsPaused

A single audio that can be played, paused etc.

public bool IsPaused { get; }

Implements IsPaused

Property Value

System.Boolean

IsPlaying

A single audio that can be played, paused etc.

public bool IsPlaying { get; }

Implements IsPlaying

Property Value

System.Boolean

IsStopped

A single audio that can be played, paused etc.

public bool IsStopped { get; }

Implements IsStopped

Property Value

System.Boolean

Length

A single audio that can be played, paused etc.

public System.TimeSpan Length { get; }

Implements Length

Property Value

System.TimeSpan

Name

A single audio that can be played, paused etc.

public string Name { get; }

Implements Name, Name

Property Value

System.String

PlaySpeed

A single audio that can be played, paused etc.

public float PlaySpeed { get; set; }

Implements PlaySpeed

Property Value

System.Single

Position

A single audio that can be played, paused etc.

public System.TimeSpan Position { get; }

Implements Position

Property Value

System.TimeSpan

Volume

A single audio that can be played, paused etc.

public float Volume { get; set; }

Implements Volume

Property Value

System.Single

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose();

Implements Dispose()

FastForward(float)

A single audio that can be played, paused etc.

public void FastForward(float seconds);

Parameters

seconds System.Single

Implements FastForward(float)

Pause()

A single audio that can be played, paused etc.

public void Pause();

Implements Pause()

Play()

A single audio that can be played, paused etc.

public void Play();

Implements Play()

Rewind(float)

A single audio that can be played, paused etc.

public void Rewind(float seconds);

Parameters

seconds System.Single

Implements Rewind(float)

SetTimePosition(float)

A single audio that can be played, paused etc.

public void SetTimePosition(float seconds);

Parameters

seconds System.Single

Implements SetTimePosition(float)

Stop()

A single audio that can be played, paused etc.

public void Stop();

Implements Stop()