SoundFontInfoLib
2.21.6
Library for parsing and rendering SF2 files
|
Memory layout of 'phdr' entry in sound font. More...
#include <Preset.hpp>
Inherits SF2::Entity::Entity.
Public Member Functions | |
Preset (IO::Pos &pos) | |
Construct from contents of file. More... | |
char const * | name () const |
uint16_t | preset () const |
uint16_t | bank () const |
uint16_t | firstZoneIndex () const |
uint16_t | zoneCount () const |
void | dump (const std::string &indent, int index) const |
Static Public Attributes | |
constexpr static size_t | size = 38 |
Memory layout of 'phdr' entry in sound font.
The size of this is defined to be 38 bytes, but due to alignment/padding the struct below is 40 bytes.
|
inlineexplicit |
Construct from contents of file.
pos | location to read from |
References SF2::IO::Pos::readInto(), size, and SF2::IO::trim_property().
|
inline |
Referenced by dump(), and SF2::IO::Parser::parse().
void Preset::dump | ( | const std::string & | indent, |
int | index | ||
) | const |
References bank(), firstZoneIndex(), name(), preset(), and zoneCount().
|
inline |
Referenced by dump(), SF2::Render::Preset::Preset(), and zoneCount().
|
inline |
Referenced by dump(), and SF2::IO::Parser::parse().
|
inline |
Referenced by dump(), and SF2::IO::Parser::parse().
|
inline |
References SF2::Entity::Entity::calculateSize(), firstZoneIndex(), and SF2::Entity::Entity::next().
Referenced by dump(), and SF2::Render::Preset::Preset().
|
staticconstexpr |
Referenced by Preset().