Method | Description | |
---|---|---|
CastSample ( double sample ) : LittleBinaryValue |
Casts sample value to its equivalent native type based on defined BitsPerSample and AudioFormat.
|
|
Clone ( ) : |
Creates a copy of the WaveFormatChunk.
|
|
GenerateBinaryImage ( byte buffer, int startIndex ) : int |
Generates a binary representation of this WaveFormatChunk and copies it into the given buffer.
|
|
GetSampleTypeCode ( ) : TypeCode |
Determines sample data type code based on defined BitsPerSample and AudioFormat.
|
|
ParseBinaryImage ( byte buffer, int startIndex, int length ) : int |
Parses WaveFormatChunk object by parsing the specified buffer containing a binary image.
|
|
WaveFormatChunk ( int sampleRate, short bitsPerSample, short channels, ushort audioFormat ) : System |
Constructs a new WaveFormatChunk using the specified audio parameters.
|
Method | Description | |
---|---|---|
UpdateBlockAlignment ( ) : void | ||
UpdateByteRate ( ) : void | ||
WaveFormatChunk ( |
public CastSample ( double sample ) : LittleBinaryValue | ||
sample | double | Sample value. |
return | LittleBinaryValue |
public GenerateBinaryImage ( byte buffer, int startIndex ) : int | ||
buffer | byte | Buffer used to hold generated binary image of the source object. |
startIndex | int | 0-based starting index in the |
return | int |
public ParseBinaryImage ( byte buffer, int startIndex, int length ) : int | ||
buffer | byte | Buffer containing binary image to parse. |
startIndex | int | 0-based starting index in the |
length | int | Valid number of bytes within |
return | int |
public WaveFormatChunk ( int sampleRate, short bitsPerSample, short channels, ushort audioFormat ) : System | ||
sampleRate | int | Sample rate for the |
bitsPerSample | short | Bits per sample for the |
channels | short | Audio channels for the |
audioFormat | ushort | Audio format for the |
return | System |