Свойство | Тип | Описание | |
---|---|---|---|
averageBytesPerSecond | int | ||
bitsPerSample | short | ||
blockAlign | short | ||
channels | short | ||
extraSize | short | ||
sampleRate | int | ||
waveFormatTag | WaveFormatEncoding |
Метод | Описание | |
---|---|---|
ConvertLatencyToByteSize ( int milliseconds ) : int |
Gets the size of a wave buffer equivalent to the latency in milliseconds.
|
|
CreateALawFormat ( int sampleRate, int channels ) : |
Creates an A-law wave format
|
|
CreateCustomFormat ( WaveFormatEncoding tag, int sampleRate, int channels, int averageBytesPerSecond, int blockAlign, int bitsPerSample ) : |
Creates a WaveFormat with custom members
|
|
CreateIeeeFloatWaveFormat ( int sampleRate, int channels ) : |
Creates a new 32 bit IEEE floating point wave format
|
|
CreateMuLawFormat ( int sampleRate, int channels ) : |
Creates a Mu-law wave format
|
|
Equals ( object obj ) : bool |
Compares with another WaveFormat object
|
|
FromFormatChunk ( |
Reads in a WaveFormat (with extra data) from a fmt chunk (chunk identifier and length should already have been read)
|
|
GetHashCode ( ) : int |
Provides a Hashcode for this WaveFormat
|
|
MarshalFromPtr ( |
Helper function to retrieve a WaveFormat structure from a pointer
|
|
MarshalToPtr ( |
Helper function to marshal WaveFormat to an IntPtr
|
|
Serialize ( |
Writes this WaveFormat object to a stream
|
|
ToString ( ) : string |
Reports this WaveFormat as a string
|
|
WaveFormat ( ) : System |
Creates a new PCM 44.1Khz stereo 16 bit format
|
|
WaveFormat ( |
Reads a new WaveFormat object from a stream
|
|
WaveFormat ( int sampleRate, int channels ) : System |
Creates a new 16 bit wave format with the specified sample rate and channel count
|
|
WaveFormat ( int rate, int bits, int channels ) : System |
Creates a new PCM format with the specified sample rate, bit depth and channels
|
Метод | Описание | |
---|---|---|
ReadWaveFormat ( |
public ConvertLatencyToByteSize ( int milliseconds ) : int | ||
milliseconds | int | The milliseconds. |
Результат | int |
public static CreateALawFormat ( int sampleRate, int channels ) : |
||
sampleRate | int | Sample Rate |
channels | int | Number of Channels |
Результат |
public static CreateCustomFormat ( WaveFormatEncoding tag, int sampleRate, int channels, int averageBytesPerSecond, int blockAlign, int bitsPerSample ) : |
||
tag | WaveFormatEncoding | The encoding |
sampleRate | int | Sample Rate |
channels | int | Number of channels |
averageBytesPerSecond | int | Average Bytes Per Second |
blockAlign | int | Block Align |
bitsPerSample | int | Bits Per Sample |
Результат |
public static CreateIeeeFloatWaveFormat ( int sampleRate, int channels ) : |
||
sampleRate | int | sample rate |
channels | int | number of channels |
Результат |
public static CreateMuLawFormat ( int sampleRate, int channels ) : |
||
sampleRate | int | Sample Rate |
channels | int | Number of Channels |
Результат |
public Equals ( object obj ) : bool | ||
obj | object | Object to compare to |
Результат | bool |
public static FromFormatChunk ( |
||
br | Binary reader | |
formatChunkLength | int | Format chunk length |
Результат |
public static MarshalFromPtr ( |
||
pointer | WaveFormat structure | |
Результат |
public static MarshalToPtr ( |
||
format | WaveFormat | |
Результат |
public Serialize ( |
||
writer | the output stream | |
Результат | void |
public WaveFormat ( |
||
br | A binary reader that wraps the stream | |
Результат | System |
public WaveFormat ( int sampleRate, int channels ) : System | ||
sampleRate | int | Sample Rate |
channels | int | Number of channels |
Результат | System |
public WaveFormat ( int rate, int bits, int channels ) : System | ||
rate | int | |
bits | int | |
channels | int | |
Результат | System |