Skip to content

MonauralWave

AutumnSky1010 edited this page Dec 7, 2022 · 6 revisions

Class MonauralWave

Definition

Namespace: SoundMaker.Sounds
Assembly: SoundMaker.dll

The monaural wave.

public class MonauralWave : IWave 

Inheritance

Object -> MonauralWave

Implements

  • IWave

Constructors

MonauralWave(IReadOnlyCollection<ushort>)

Declaration

public MonauralWave(IReadOnlyCollection<ushort> wave)

Parameters

Type Desctiption
IReadOnlyCollection<ushort> The collection of wave data.

Properties

Volume

Declaration

public int Volume { get; private set; }

Property Value

Type Desctiption
int Volume of mixed wave.(0 ~ 100)

[Obsolete]Length

Declaration

[Obsolete]
public int Length

Property Value

Type Desctiption
int Length of wave at initialization.

Methods

ChangeVolume(int)

Declaration

public void ChangeVolume(int volume)

Parameters

Type Desctiption
int Volume of mixed wave.(0 ~ 100)

Append(MonauralWave)

Append the deferent MonauralWave.
Declaration

public void Append(MonauralWave wave)

Parameters

Type Desctiption
MonauralWave The deferent wave.

GetBytes(BitRateType)

Get the array of bytes of the wave data.
Declaration

public byte[] GetBytes(BitRateType bitRate)

Parameters

Type Desctiption
Sounds.BitRateType

Returns

Type Desctiption
byte[] The array of bytes of the wave data.

GetWave()

Get the wave.
Declaration

public ushort[] GetWave()

Returns

Type Desctiption
ushort[] The wave.

GetLengthOfBytes(BitRateType)

Get length of bytes of wave data.
Declaration

int GetLengthOfBytes(BitRateType bitRate);

Parameters

Type Desctiption
Sounds.BitRateType

Returns

Type Desctiption
int Length of bytes of wave data.
Clone this wiki locally