|
override SampleHeader | Read (BinaryReader br) |
| Reads and returns a SampleHeader from the provided BinaryReader.
|
|
override void | Write (BinaryWriter bw, SampleHeader sampleHeader) |
| Writes the sample header to the specified binary writer.
|
|
◆ Read()
override SampleHeader NAudio.SoundFont.SampleHeaderBuilder.Read |
( |
BinaryReader | br | ) |
|
|
inline |
Reads and returns a SampleHeader from the provided BinaryReader.
- Parameters
-
br | The BinaryReader used to read the SampleHeader. |
- Returns
- The SampleHeader read from the BinaryReader.
This method reads data from the provided BinaryReader to populate a SampleHeader object with the following properties:
- SampleName: A string representing the sample name.
- Start: A 32-bit unsigned integer representing the start position.
- End: A 32-bit unsigned integer representing the end position.
- StartLoop: A 32-bit unsigned integer representing the start loop position.
- EndLoop: A 32-bit unsigned integer representing the end loop position.
- SampleRate: A 32-bit unsigned integer representing the sample rate.
- OriginalPitch: An 8-bit unsigned integer representing the original pitch.
- PitchCorrection: An 8-bit signed integer representing the pitch correction.
- SampleLink: A 16-bit unsigned integer representing the sample link.
- SFSampleLink: An enumeration representing the SoundFont sample link. The method then adds the populated SampleHeader to a collection and returns it.
◆ Write()
override void NAudio.SoundFont.SampleHeaderBuilder.Write |
( |
BinaryWriter | bw, |
|
|
SampleHeader | sampleHeader ) |
|
inline |
Writes the sample header to the specified binary writer.
- Parameters
-
bw | The binary writer to write to. |
sampleHeader | The sample header to be written. |
◆ Length
override int NAudio.SoundFont.SampleHeaderBuilder.Length |
|
get |
◆ SampleHeaders
SampleHeader [] NAudio.SoundFont.SampleHeaderBuilder.SampleHeaders |
|
get |
The documentation for this class was generated from the following file:
- /Users/sumansaurabh/Documents/my-startup/xeno-rat/Plugins/LiveMicrophone/lib/NAudio.Core/FileFormats/SoundFont/SampleHeaderBuilder.cs