BGC Tools
Public Member Functions | Protected Member Functions | Protected Attributes | Properties
BGC.Audio.BGCStream Class Referenceabstract
Inheritance diagram for BGC.Audio.BGCStream:
Inheritance graph
[legend]
Collaboration diagram for BGC.Audio.BGCStream:
Collaboration graph
[legend]

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...
 

Detailed Description

Definition at line 6 of file BGCStream.cs.

Member Function Documentation

◆ _Initialize()

virtual void BGC.Audio.BGCStream._Initialize ( )
inlineprotectedvirtual

◆ GetChannelRMS()

abstract IEnumerable<double> BGC.Audio.BGCStream.GetChannelRMS ( )
pure virtual

◆ Initialize()

void BGC.Audio.BGCStream.Initialize ( )
inline

Perform any calculations necessary to prepare the Stream

Implements BGC.Audio.IBGCStream.

Definition at line 18 of file BGCStream.cs.

19  {
20  if (!initialized)
21  {
22  initialized = true;
23  _Initialize();
24  }
25  }
virtual void _Initialize()
Definition: BGCStream.cs:28

◆ Read()

abstract int BGC.Audio.BGCStream.Read ( float []  data,
int  offset,
int  count 
)
pure virtual

◆ Reset()

abstract void BGC.Audio.BGCStream.Reset ( )
pure virtual

◆ Seek()

abstract void BGC.Audio.BGCStream.Seek ( int  position)
pure virtual

Field Documentation

◆ initialized

bool BGC.Audio.BGCStream.initialized = false
protected

Definition at line 27 of file BGCStream.cs.

Property Documentation

◆ Channels

abstract int BGC.Audio.BGCStream.Channels
get

Definition at line 8 of file BGCStream.cs.

◆ ChannelSamples

abstract int BGC.Audio.BGCStream.ChannelSamples
get

Definition at line 12 of file BGCStream.cs.

◆ SamplingRate

abstract float BGC.Audio.BGCStream.SamplingRate
get

Definition at line 14 of file BGCStream.cs.

◆ TotalSamples

abstract int BGC.Audio.BGCStream.TotalSamples
get

Definition at line 10 of file BGCStream.cs.


The documentation for this class was generated from the following file: