Skip to content

ISoundChannel

AutumnSky1010 edited this page Jun 15, 2024 · 3 revisions

Interface ISoundComponent

Definition

Namespace: SoundMaker.Sounds.SoundChannels
Assembly: SoundMaker.dll

Interface for sound channel.

public interface ISoundChannel : IEnumerable<ISoundComponent>

Implements

Properties

Item

Declaration

ISoundComponent this[int index] { get; }

Parameters

Type Desctiption
int Index of sound components.

Property Value

Type Desctiption
ISoundComponent Get sound component at index.

Capacity

Declaration

public int Capacity { get; }

Property Value

Type Desctiption
int The total number of sound components the internal data structure can hold without resizing.

ComponentCount

Declaration

public int ComponentCount { get; }

Property Value

Type Desctiption
int Count of sound components.

WaveArrayLength

Declaration

public int WaveArrayLength { get; }

Property Value

Type Desctiption
int Length of wave data.

Tempo

Declaration

public int Tempo { get; }

Property Value

Type Desctiption
int Quarter note/rest per minute.

Format

Declaration

SoundFormat Format { get; }

Property Value

Type Desctiption
SoundFormat Format of the sound.

PanType

Declaration

PanType PanType { get; }

Property Value

Type Desctiption
PanType Direction of hearing.

Methods

GenerateWave()

Declaration

ushort[] GenerateWave();

Returns

Type Desctiption
ushort[] The array of wave data.

Add(ISoundComponent)

Declaration

void Add(ISoundComponent components);

Parameters

Type Desctiption
ISoundComponent The sound component to be added to this.

RemoveAt(int)

Declaration

void RemoveAt(int index);

Parameters

Type Desctiption
int The index of the sound component to remove.

Clear()

Remove all sound component from this.
Declaration

void Clear();
Clone this wiki locally