OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
Dx8::SoundFont::Instance Struct Reference

Public Member Functions

 Instance (std::shared_ptr< Data > &shData, uint32_t dwPatch)
 
 ~Instance ()
 
bool hasNotes ()
 
void setPan (float p)
 
bool noteOn (uint8_t note, uint8_t velosity)
 
bool noteOff (uint8_t note)
 

Public Attributes

std::bitset< 256 > alloc
 
tsf * fnt =nullptr
 
int preset =0
 

Detailed Description

Definition at line 138 of file soundfont.cpp.

Constructor & Destructor Documentation

◆ Instance()

Dx8::SoundFont::Instance::Instance ( std::shared_ptr< Data > &  shData,
uint32_t  dwPatch 
)
inline

Definition at line 139 of file soundfont.cpp.

◆ ~Instance()

Dx8::SoundFont::Instance::~Instance ( )
inline

Definition at line 150 of file soundfont.cpp.

Member Function Documentation

◆ hasNotes()

bool Dx8::SoundFont::Instance::hasNotes ( )
inline

Definition at line 154 of file soundfont.cpp.

◆ noteOff()

bool Dx8::SoundFont::Instance::noteOff ( uint8_t  note)
inline

Definition at line 172 of file soundfont.cpp.

◆ noteOn()

bool Dx8::SoundFont::Instance::noteOn ( uint8_t  note,
uint8_t  velosity 
)
inline

Definition at line 163 of file soundfont.cpp.

◆ setPan()

void Dx8::SoundFont::Instance::setPan ( float  p)
inline

Definition at line 158 of file soundfont.cpp.

Member Data Documentation

◆ alloc

std::bitset<256> Dx8::SoundFont::Instance::alloc

Definition at line 180 of file soundfont.cpp.

◆ fnt

tsf* Dx8::SoundFont::Instance::fnt =nullptr

Definition at line 181 of file soundfont.cpp.

◆ preset

int Dx8::SoundFont::Instance::preset =0

Definition at line 182 of file soundfont.cpp.


The documentation for this struct was generated from the following file: