Class SoundBase
Basic sound class.
Namespace: Evergine.Common.Media
Assembly: Evergine.Common.dll
Syntax
public class SoundBase
Constructors
SoundBase()
Initializes a new instance of the SoundBase class.
Declaration
public SoundBase()
Fields
SoundHandle
Sound handle.
Declaration
public uint SoundHandle
Field Value
Type | Description |
---|---|
uint |
Properties
BitsPerSample
Gets or sets the bits per sample.
Declaration
public int BitsPerSample { get; set; }
Property Value
Type | Description |
---|---|
int | The bits per sample. |
Channels
Gets or sets the channels.
Declaration
public int Channels { get; set; }
Property Value
Type | Description |
---|---|
int | The channels. |
IsValidSound
Gets a value indicating whether this instance is a valid sound.
Declaration
public bool IsValidSound { get; }
Property Value
Type | Description |
---|---|
bool |
|
PCMData
Gets or sets the PCM data.
Declaration
public byte[] PCMData { get; set; }
Property Value
Type | Description |
---|---|
byte[] | The PCM data. |
Path
Gets or sets the path of the sound asset.
Declaration
public string Path { get; set; }
Property Value
Type | Description |
---|---|
string |
SampleRate
Gets or sets the sample rate.
Declaration
public int SampleRate { get; set; }
Property Value
Type | Description |
---|---|
int | The sample rate. |