Table of Contents

Class SoundAsset

Namespace
Axolotl2D.Assets
Assembly
Axolotl2D.dll

Uncompressed PCM audio ready for OpenAL playback.

public sealed class SoundAsset
Inheritance
SoundAsset
Inherited Members

Constructors

SoundAsset(byte[], int, short, short)

Uncompressed PCM audio ready for OpenAL playback.

public SoundAsset(byte[] samples, int sampleRate, short channels, short bitsPerSample)

Parameters

samples byte[]
sampleRate int
channels short
bitsPerSample short

Properties

BitsPerSample

public short BitsPerSample { get; }

Property Value

short

Channels

public short Channels { get; }

Property Value

short

SampleRate

public int SampleRate { get; }

Property Value

int

Samples

public ReadOnlyMemory<byte> Samples { get; }

Property Value

ReadOnlyMemory<byte>