-
Notifications
You must be signed in to change notification settings - Fork 1
StereoWave
AutumnSky1010 edited this page Dec 7, 2022
·
5 revisions
Namespace: SoundMaker.Sounds
Assembly: SoundMaker.dll
The stereo wave.
public class StereoWave : IWave
Object -> StereoWave
Declaration
public StereoWave(IReadOnlyCollection<ushort> rightWave, IReadOnlyCollection<ushort> leftWave)
Parameters
Type | Desctiption |
---|---|
IReadOnlyCollection<ushort> | The wave of right. |
IReadOnlyCollection<ushort> | The wave of left. |
Declaration
public int Volume { get; private set; }
Property Value
Type | Desctiption |
---|---|
int | Volume of mixed wave.(0 ~ 100) |
Declaration
[Obsolete]
public int Length
Property Value
Type | Desctiption |
---|---|
int | Length of wave at initialization. |
Declaration
public void ChangeVolume(int volume, SoundDirectionType channelType)
Parameters
Type | Desctiption |
---|---|
int | Volume of mixed wave.(0 ~ 100) |
SoundDirectionType | The type which is expressed direction of the sound. |
Append the deferent StereoWave.
Declaration
public void Append(StereoWave wave)
Parameters
Type | Desctiption |
---|---|
StereoWave | The deferent wave. |
Declaration
public byte[] GetBytes(BitRateType bitRate)
Parameters
Type | Desctiption |
---|---|
Sounds.BitRateType |
Returns
Type | Desctiption |
---|---|
byte[] | The array of bytes of the wave data. |
Declaration
public ushort[] GetRightWave()
Returns
Type | Desctiption |
---|---|
ushort[] | The wave on the right. |
Declaration
public ushort[] GetLeftWave()
Returns
Type | Desctiption |
---|---|
ushort[] | The wave on the left. |
Get length of bytes of wave data.
Declaration
public int GetLengthOfBytes(BitRateType bitRate)
Parameters
Type | Desctiption |
---|---|
Sounds.BitRateType |
Returns
Type | Desctiption |
---|---|
int | Length of bytes of wave data. |
- Usage
- Kind of waves
- What is the SMSC format?
- kind of sound components.
- How to export the wave
- Use cases
SoundMaker.ScoreData.SMSC
SoundMaker.WaveFile
SoundMaker.Sounds
- Sounds.BitRateType
- Sounds.ChannelType
- IWave
- MixerBase
- MonauralMixer
- MonauralWave
- Sounds.SamplingFrequencyType
- SoundDirectionType
- SoundFormat
- StereoMixer
- StereoWave