Xeno-rat
Loading...
Searching...
No Matches
NAudio.SoundFont.SampleHeaderBuilder Class Reference
Inheritance diagram for NAudio.SoundFont.SampleHeaderBuilder:
Collaboration diagram for NAudio.SoundFont.SampleHeaderBuilder:

Public Member Functions

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.
 

Properties

override int Length [get]
 
SampleHeader[] SampleHeaders [get]
 

Member Function Documentation

◆ Read()

override SampleHeader NAudio.SoundFont.SampleHeaderBuilder.Read ( BinaryReader br)
inline

Reads and returns a SampleHeader from the provided BinaryReader.

Parameters
brThe 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
bwThe binary writer to write to.
sampleHeaderThe sample header to be written.

Property Documentation

◆ 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: