Struct AudioFormat
Assembly: Glitch9.IO.dll
public readonly struct AudioFormat
Constructors
|
Edit this page
View Source
Declaration
public AudioFormat(AudioEncoding encoding = AudioEncoding.PCM16, SampleRate sampleRate = SampleRate.Hz44100, Bitrate bitrate = Bitrate.Kbps128, BitDepth bitDepth = BitDepth.Bit16, int channels = 1, int headerSize = 44)
Parameters
Properties
|
Edit this page
View Source
Declaration
public BitDepth BitDepth { get; }
Property Value
|
Edit this page
View Source
Declaration
public Bitrate Bitrate { get; }
Property Value
|
Edit this page
View Source
Declaration
public int Channels { get; }
Property Value
|
Edit this page
View Source
Declaration
public AudioEncoding Encoding { get; }
Property Value
|
Edit this page
View Source
Declaration
public int HeaderSize { get; }
Property Value
|
Edit this page
View Source
Declaration
public SampleRate SampleRate { get; }
Property Value
Methods
|
Edit this page
View Source
Declaration
public static AudioFormat DefaultMP3(int channels = 1)
Parameters
| Type |
Name |
Description |
| int |
channels |
|
Returns
|
Edit this page
View Source
Declaration
public static AudioFormat DefaultPCM(int channels = 1)
Parameters
| Type |
Name |
Description |
| int |
channels |
|
Returns
|
Edit this page
View Source
Declaration
public static AudioFormat DefaultWAV(int channels = 1)
Parameters
| Type |
Name |
Description |
| int |
channels |
|
Returns
Extension Methods