|
BGC Tools
|
Stream that stores the left and right channels as separate arrays More...


Public Member Functions | |
| InterlacingAudioClip (float[] leftSamples, float[] rightSamples) | |
| override int | Read (float[] data, int offset, int count) |
| Copy count samples into the Data buffer, starting at offset. More... | |
| override void | Seek (int position) |
| Seek to the indicated position in the stream More... | |
| override void | Reset () |
| Sets this internal state of this stream to the initial state More... | |
| override IEnumerable< double > | GetChannelRMS () |
| The RMS amplitude of each channel More... | |
Public Member Functions inherited from BGC.Audio.BGCStream | |
| void | Initialize () |
| Perform any calculations necessary to prepare the Stream More... | |
Data Fields | |
| override int | ChannelSamples => LSamples.Length |
| override int | TotalSamples => Channels * LSamples.Length |
| override int | Channels => 2 |
Data Fields inherited from BGC.Audio.BGCAudioClip | |
| float | Duration => ChannelSamples / SamplingRate |
| override float | SamplingRate => 44100f |
Properties | |
| int | Position [get, private set] |
| int | RawPosition = 0 [get, set] |
| Simulated raw sample position More... | |
| float [] | LSamples [get] |
| float [] | RSamples [get] |
Properties inherited from BGC.Audio.BGCStream | |
| 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... | |
Private Attributes | |
| int | RemainingChannelSamples => Math.Max(0, LSamples.Length - Position) |
| int | RemainingTotalSamples => Channels * RemainingChannelSamples |
| IEnumerable< double > | _channelRMS = null |
Additional Inherited Members | |
Protected Member Functions inherited from BGC.Audio.BGCStream | |
| virtual void | _Initialize () |
Protected Attributes inherited from BGC.Audio.BGCStream | |
| bool | initialized = false |
Stream that stores the left and right channels as separate arrays
Definition at line 10 of file InterlacingAudioClip.cs.
|
inline |
Definition at line 34 of file InterlacingAudioClip.cs.
|
inlinevirtual |
The RMS amplitude of each channel
Implements BGC.Audio.BGCStream.
Definition at line 61 of file InterlacingAudioClip.cs.
|
inlinevirtual |
Copy count samples into the Data buffer, starting at offset.
Implements BGC.Audio.BGCStream.
Definition at line 40 of file InterlacingAudioClip.cs.
References BGC.Mathematics.GeneralMath.Clamp().

|
virtual |
Sets this internal state of this stream to the initial state
Implements BGC.Audio.BGCStream.
|
virtual |
Seek to the indicated position in the stream
Implements BGC.Audio.BGCStream.
|
private |
Definition at line 60 of file InterlacingAudioClip.cs.
| override int BGC.Audio.InterlacingAudioClip.Channels => 2 |
Definition at line 29 of file InterlacingAudioClip.cs.
| override int BGC.Audio.InterlacingAudioClip.ChannelSamples => LSamples.Length |
Definition at line 23 of file InterlacingAudioClip.cs.
|
private |
Definition at line 31 of file InterlacingAudioClip.cs.
|
private |
Definition at line 32 of file InterlacingAudioClip.cs.
| override int BGC.Audio.InterlacingAudioClip.TotalSamples => Channels * LSamples.Length |
Definition at line 24 of file InterlacingAudioClip.cs.
|
get |
Definition at line 26 of file InterlacingAudioClip.cs.
|
getprivate set |
Definition at line 12 of file InterlacingAudioClip.cs.
|
getset |
Simulated raw sample position
Definition at line 18 of file InterlacingAudioClip.cs.
|
get |
Definition at line 27 of file InterlacingAudioClip.cs.
1.8.13