Skip to content

StereoWave

AutumnSky1010 edited this page Dec 7, 2022 · 5 revisions

Class StereoWave

Definition

Namespace: SoundMaker.Sounds
Assembly: SoundMaker.dll

The stereo wave.

public class StereoWave : IWave

Inheritance

Object -> StereoWave

Implements

Constructors

StereoWave(IReadOnlyCollection<ushort>, IReadOnlyCollection<ushort>)

Declaration

public StereoWave(IReadOnlyCollection<ushort> rightWave, IReadOnlyCollection<ushort> leftWave)

Parameters

Type Desctiption
IReadOnlyCollection<ushort> The wave of right.
IReadOnlyCollection<ushort> The wave of left.

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, SoundDirectionType)

Declaration

public void ChangeVolume(int volume, SoundDirectionType channelType)

Parameters

Type Desctiption
int Volume of mixed wave.(0 ~ 100)
SoundDirectionType The type which is expressed direction of the sound.

Append(StereoWave)

Append the deferent StereoWave.
Declaration

public void Append(StereoWave wave)

Parameters

Type Desctiption
StereoWave The deferent wave.

GetBytes(BitRateType)

Declaration

public byte[] GetBytes(BitRateType bitRate)

Parameters

Type Desctiption
Sounds.BitRateType

Returns

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

GetRightWave()

Declaration

public ushort[] GetRightWave()

Returns

Type Desctiption
ushort[] The wave on the right.

GetLeftWave()

Declaration

public ushort[] GetLeftWave()

Returns

Type Desctiption
ushort[] The wave on the left.

GetLengthOfBytes(BitRateType)

Get length of bytes of wave data.
Declaration

public int GetLengthOfBytes(BitRateType bitRate)

Parameters

Type Desctiption
Sounds.BitRateType

Returns

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