-
Notifications
You must be signed in to change notification settings - Fork 1
MonauralWave
AutumnSky1010 edited this page Dec 7, 2022
·
6 revisions
Namespace: SoundMaker.Sounds
Assembly: SoundMaker.dll
The monaural wave.
public class MonauralWave : IWave
Object -> MonauralWave
- IWave
Declaration
public MonauralWave(IReadOnlyCollection<ushort> wave)
Parameters
Type | Desctiption |
---|---|
IReadOnlyCollection<ushort> | The collection of wave data. |
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)
Parameters
Type | Desctiption |
---|---|
int | Volume of mixed wave.(0 ~ 100) |
Append the deferent MonauralWave.
Declaration
public void Append(MonauralWave wave)
Parameters
Type | Desctiption |
---|---|
MonauralWave | The deferent wave. |
Get the array of bytes of the wave data.
Declaration
public byte[] GetBytes(BitRateType bitRate)
Parameters
Type | Desctiption |
---|---|
Sounds.BitRateType |
Returns
Type | Desctiption |
---|---|
byte[] | The array of bytes of the wave data. |
Get the wave.
Declaration
public ushort[] GetWave()
Returns
Type | Desctiption |
---|---|
ushort[] | The wave. |
Get length of bytes of wave data.
Declaration
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