Property | Type | Description | |
---|---|---|---|
averageBytesPerSecond | int | ||
bitsPerSample | short | ||
blockAlign | short | ||
channels | short | ||
extraSize | short | ||
sampleRate | int | ||
waveFormatTag | WaveFormatEncoding |
Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
ReadWaveFormat ( |
public ConvertLatencyToByteSize ( int milliseconds ) : int | ||
milliseconds | int | The milliseconds. |
return | int |
public static CreateALawFormat ( int sampleRate, int channels ) : |
||
sampleRate | int | Sample Rate |
channels | int | Number of Channels |
return |
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 |
return |
public static CreateIeeeFloatWaveFormat ( int sampleRate, int channels ) : |
||
sampleRate | int | sample rate |
channels | int | number of channels |
return |
public static CreateMuLawFormat ( int sampleRate, int channels ) : |
||
sampleRate | int | Sample Rate |
channels | int | Number of Channels |
return |
public Equals ( object obj ) : bool | ||
obj | object | Object to compare to |
return | bool |
public static FromFormatChunk ( |
||
br | Binary reader | |
formatChunkLength | int | Format chunk length |
return |
public static MarshalFromPtr ( |
||
pointer | WaveFormat structure | |
return |
public static MarshalToPtr ( |
||
format | WaveFormat | |
return |
public Serialize ( |
||
writer | the output stream | |
return | void |
public WaveFormat ( |
||
br | A binary reader that wraps the stream | |
return | System |
public WaveFormat ( int sampleRate, int channels ) : System | ||
sampleRate | int | Sample Rate |
channels | int | Number of channels |
return | System |
public WaveFormat ( int rate, int bits, int channels ) : System | ||
rate | int | |
bits | int | |
channels | int | |
return | System |