BGC Tools
|
Public Member Functions | |
abstract IEnumerable< double > | GetChannelRMS () |
The RMS amplitude of each channel More... | |
void | Initialize () |
Perform any calculations necessary to prepare the Stream More... | |
abstract int | Read (float[] data, int offset, int count) |
Copy count samples into the Data buffer, starting at offset. More... | |
abstract void | Reset () |
Sets this internal state of this stream to the initial state More... | |
abstract void | Seek (int position) |
Seek to the indicated position in the stream More... | |
Protected Member Functions | |
virtual void | _Initialize () |
Protected Attributes | |
bool | initialized = false |
Properties | |
abstract int | Channels [get] |
abstract int | TotalSamples [get] |
abstract int | ChannelSamples [get] |
abstract float | SamplingRate [get] |
Properties inherited from BGC.Audio.IBGCStream | |
int | Channels [get] |
The number of underlying Channels of this BGCStream More... | |
int | TotalSamples [get] |
The total number of Samples of this BGCStream More... | |
int | ChannelSamples [get] |
The number of Samples of each channel for this BGCStream More... | |
float | SamplingRate [get] |
The sampling rate of the Stream More... | |
Definition at line 6 of file BGCStream.cs.
|
inlineprotectedvirtual |
Reimplemented in BGC.Audio.Synthesis.STMAudioClip, BGC.Audio.Synthesis.NoiseAudioClip, BGC.Audio.Synthesis.SweepAudioClip, BGC.Audio.NormalizedMonoClip, and BGC.Audio.Synthesis.WhiteNoiseStream.
Definition at line 28 of file BGCStream.cs.
|
pure virtual |
The RMS amplitude of each channel
Implements BGC.Audio.IBGCStream.
Implemented in BGC.Audio.Synthesis.FrequencyDomainToneComposer, BGC.Audio.Synthesis.STMAudioClip, BGC.Audio.Synthesis.SquareWave, BGC.Audio.CrossFadingRefClip, BGC.Audio.Synthesis.TriangleWave, BGC.Audio.Synthesis.SweepAudioClip, BGC.Audio.Synthesis.SineWave, BGC.Audio.Synthesis.NoiseAudioClip, BGC.Audio.Synthesis.WhiteNoiseStream, BGC.Audio.NormalizedMonoClip, BGC.Audio.Synthesis.SawtoothWave, BGC.Audio.Synthesis.ContinuousWhiteNoiseStream, BGC.Audio.InterlacingAudioClip, BGC.Audio.SimpleAudioClip, BGC.Audio.Synthesis.SilenceStream, and BGC.Audio.Synthesis.PerpetualSilence.
|
inline |
Perform any calculations necessary to prepare the Stream
Implements BGC.Audio.IBGCStream.
Definition at line 18 of file BGCStream.cs.
|
pure virtual |
Copy count samples into the Data buffer, starting at offset.
Implements BGC.Audio.IBGCStream.
Implemented in BGC.Audio.Synthesis.STMAudioClip, BGC.Audio.Synthesis.SweepAudioClip, BGC.Audio.Synthesis.SquareWave, BGC.Audio.Synthesis.FrequencyDomainToneComposer, BGC.Audio.Synthesis.NoiseAudioClip, BGC.Audio.Synthesis.TriangleWave, BGC.Audio.CrossFadingRefClip, BGC.Audio.Synthesis.SineWave, BGC.Audio.Synthesis.WhiteNoiseStream, BGC.Audio.NormalizedMonoClip, BGC.Audio.Synthesis.ContinuousWhiteNoiseStream, BGC.Audio.InterlacingAudioClip, BGC.Audio.SimpleAudioClip, BGC.Audio.Synthesis.SawtoothWave, BGC.Audio.Synthesis.SilenceStream, and BGC.Audio.Synthesis.PerpetualSilence.
|
pure virtual |
Sets this internal state of this stream to the initial state
Implements BGC.Audio.IBGCStream.
Implemented in BGC.Audio.Synthesis.FrequencyDomainToneComposer, BGC.Audio.Synthesis.STMAudioClip, BGC.Audio.Synthesis.SquareWave, BGC.Audio.Synthesis.SweepAudioClip, BGC.Audio.Synthesis.TriangleWave, BGC.Audio.Synthesis.NoiseAudioClip, BGC.Audio.Synthesis.SineWave, BGC.Audio.Synthesis.WhiteNoiseStream, BGC.Audio.NormalizedMonoClip, BGC.Audio.Synthesis.ContinuousWhiteNoiseStream, BGC.Audio.CrossFadingRefClip, BGC.Audio.Synthesis.SawtoothWave, BGC.Audio.InterlacingAudioClip, BGC.Audio.SimpleAudioClip, BGC.Audio.Synthesis.SilenceStream, and BGC.Audio.Synthesis.PerpetualSilence.
|
pure virtual |
Seek to the indicated position in the stream
Implements BGC.Audio.IBGCStream.
Implemented in BGC.Audio.Synthesis.FrequencyDomainToneComposer, BGC.Audio.Synthesis.STMAudioClip, BGC.Audio.CrossFadingRefClip, BGC.Audio.Synthesis.SquareWave, BGC.Audio.Synthesis.SweepAudioClip, BGC.Audio.Synthesis.TriangleWave, BGC.Audio.Synthesis.NoiseAudioClip, BGC.Audio.Synthesis.SineWave, BGC.Audio.Synthesis.WhiteNoiseStream, BGC.Audio.NormalizedMonoClip, BGC.Audio.Synthesis.SawtoothWave, BGC.Audio.Synthesis.ContinuousWhiteNoiseStream, BGC.Audio.InterlacingAudioClip, BGC.Audio.SimpleAudioClip, BGC.Audio.Synthesis.SilenceStream, and BGC.Audio.Synthesis.PerpetualSilence.
|
protected |
Definition at line 27 of file BGCStream.cs.
|
get |
Definition at line 8 of file BGCStream.cs.
|
get |
Definition at line 12 of file BGCStream.cs.
|
get |
Definition at line 14 of file BGCStream.cs.
|
get |
Definition at line 10 of file BGCStream.cs.