-
Notifications
You must be signed in to change notification settings - Fork 1
FormatBuilder
AutumnSky1010 edited this page Jun 15, 2024
·
2 revisions
Namespace: SoundMaker
Assembly: SoundMaker.dll
Represents a class used to build SoundFormat and FormatChunk.
public class FormatBuilder
2.2.0 ~
var builder = FormatBuilder.Create()
.WithFrequency(48000) // Or 44100. Otherwise, an ArgumentException is thrown.
.WithBitDepth(16) // Or 16. Otherwise, an ArgumentException is thrown.
.WithChannelCount(2); // Or 1. Otherwise, an ArgumentException is thrown.
var waveFileFormat = builder.ToFormatChunk();
var soundFormat = builder.ToSoundFormat();
Object -> FormatBuilder
Declaration
public static SamplingFrequencyBuilder Create()
Returns
Type | Desctiption |
---|---|
The builder | Returns SamplingFrequencyBuilder, BitDepthBuilder, ChannelTypeBuilder, in that order. See examples for usage. |
Declaration
public FormatChunk ToFormatChunk()
Returns
Type | Desctiption |
---|---|
FormatChunk | The FormatChunk object. |
Declaration
public SoundFormat ToSoundFormat()
Returns
Type | Desctiption |
---|---|
SoundFormat | The SoundFormat object. |
- 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