C# Класс DSPUtil.SoundBuffer

Наследование: SoundObj, ISampleBuffer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ApplyGain ( double gain ) : void

Apply a gain (units) to the whole buffer.

ApplyWindow ( CosWindow window ) : void

Apply a window to the whole buffer.

MaxPos ( ) : int
MaxVal ( ) : double
Normalize ( double dBfs ) : double

Normalize the buffer so maximum value is at (dBfs)

Normalize ( double dBfs, bool doIt ) : double
PadTo ( int n ) : void
PadToPowerOfTwo ( ) : void
Read ( int n, int &nn, bool &moreSamples ) : ISample[]
ReadAll ( ) : int
ReadComplex ( int n, int &nn, bool &moreSamples ) : Complex[][]
ReadTo ( int n ) : bool
SampleSubset ( int start, int count ) : IEnumerator

Get an iterator for a subset of samples

Skip ( int n, int &nn, bool &moreSamples ) : void
SoundBuffer ( ) : System
SoundBuffer ( ISoundObj input ) : System
SoundBuffer ( List samples, ushort numChannels, uint sampleRate ) : System
Subset ( int start ) : ISoundObj
Subset ( int start, int count ) : ISoundObj
ToArray ( ) : ISample[]
ToArray ( int startPos ) : ISample[]
ToArray ( int startPos, int count ) : ISample[]
ToComplexArray ( ) : Complex[][]
ToComplexArray ( int startPos ) : Complex[][]
ToComplexArray ( int startPos, int count ) : Complex[][]
ToDoubleArray ( ) : double[][]

Return the buffer contents as an array of doubles

ToDoubleArray ( int startPos ) : double[][]

Return the buffer contents as an array of doubles

ToDoubleArray ( int startPos, int count ) : double[][]

Return the buffer contents as an array of doubles

this ( int arg ) : ISample

Приватные методы

Метод Описание
FindMax ( ) : void

Описание методов

ApplyGain() публичный метод

Apply a gain (units) to the whole buffer.
public ApplyGain ( double gain ) : void
gain double units to scale by
Результат void

ApplyWindow() публичный метод

Apply a window to the whole buffer.
public ApplyWindow ( CosWindow window ) : void
window CosWindow Cosine-based window to apply
Результат void

MaxPos() публичный метод

public MaxPos ( ) : int
Результат int

MaxVal() публичный метод

public MaxVal ( ) : double
Результат double

Normalize() публичный метод

Normalize the buffer so maximum value is at (dBfs)
public Normalize ( double dBfs ) : double
dBfs double dB-of-fullscale for the new peak
Результат double

Normalize() публичный метод

public Normalize ( double dBfs, bool doIt ) : double
dBfs double
doIt bool
Результат double

PadTo() публичный метод

public PadTo ( int n ) : void
n int
Результат void

PadToPowerOfTwo() публичный метод

public PadToPowerOfTwo ( ) : void
Результат void

Read() публичный метод

public Read ( int n, int &nn, bool &moreSamples ) : ISample[]
n int
nn int
moreSamples bool
Результат ISample[]

ReadAll() публичный метод

public ReadAll ( ) : int
Результат int

ReadComplex() публичный метод

public ReadComplex ( int n, int &nn, bool &moreSamples ) : Complex[][]
n int
nn int
moreSamples bool
Результат Complex[][]

ReadTo() публичный метод

public ReadTo ( int n ) : bool
n int
Результат bool

SampleSubset() публичный метод

Get an iterator for a subset of samples
public SampleSubset ( int start, int count ) : IEnumerator
start int
count int Number to return
Результат IEnumerator

Skip() публичный метод

public Skip ( int n, int &nn, bool &moreSamples ) : void
n int
nn int
moreSamples bool
Результат void

SoundBuffer() публичный метод

public SoundBuffer ( ) : System
Результат System

SoundBuffer() публичный метод

public SoundBuffer ( ISoundObj input ) : System
input ISoundObj
Результат System

SoundBuffer() публичный метод

public SoundBuffer ( List samples, ushort numChannels, uint sampleRate ) : System
samples List
numChannels ushort
sampleRate uint
Результат System

Subset() публичный метод

public Subset ( int start ) : ISoundObj
start int
Результат ISoundObj

Subset() публичный метод

public Subset ( int start, int count ) : ISoundObj
start int
count int
Результат ISoundObj

ToArray() публичный метод

public ToArray ( ) : ISample[]
Результат ISample[]

ToArray() публичный метод

public ToArray ( int startPos ) : ISample[]
startPos int
Результат ISample[]

ToArray() публичный метод

public ToArray ( int startPos, int count ) : ISample[]
startPos int
count int
Результат ISample[]

ToComplexArray() публичный метод

public ToComplexArray ( ) : Complex[][]
Результат Complex[][]

ToComplexArray() публичный метод

public ToComplexArray ( int startPos ) : Complex[][]
startPos int
Результат Complex[][]

ToComplexArray() публичный метод

public ToComplexArray ( int startPos, int count ) : Complex[][]
startPos int
count int
Результат Complex[][]

ToDoubleArray() публичный метод

Return the buffer contents as an array of doubles
public ToDoubleArray ( ) : double[][]
Результат double[][]

ToDoubleArray() публичный метод

Return the buffer contents as an array of doubles
public ToDoubleArray ( int startPos ) : double[][]
startPos int Start position in the buffer
Результат double[][]

ToDoubleArray() публичный метод

Return the buffer contents as an array of doubles
public ToDoubleArray ( int startPos, int count ) : double[][]
startPos int
count int Length of the return array (will be null-padded if count exceeds data size)
Результат double[][]

this() публичный метод

public this ( int arg ) : ISample
arg int
Результат ISample