LMMS
Loading...
Searching...
No Matches
lmms::FluidVoice Class Reference

Public Member Functions

 FluidVoice (fluid_voice_t *voice)
 Create a reference to the voice currently pointed at by voice.
fluid_voice_t * get () const noexcept
 Get a pointer to the referenced voice.
float coarseTune () const noexcept
 Get the original coarse tuning of the referenced voice.
bool isValid () const
 Test whether this object still refers to the original voice.

Private Attributes

fluid_voice_t * m_voice
unsigned int m_id
float m_coarseTune

Detailed Description

A non-owning reference to a single FluidSynth voice. Captures some initial properties of the referenced voice to help manage changes to it over time.

Constructor & Destructor Documentation

◆ FluidVoice()

lmms::FluidVoice::FluidVoice ( fluid_voice_t * voice)
inlineexplicit

Create a reference to the voice currently pointed at by voice.

Member Function Documentation

◆ coarseTune()

float lmms::FluidVoice::coarseTune ( ) const
inlinenoexcept

Get the original coarse tuning of the referenced voice.

◆ get()

fluid_voice_t * lmms::FluidVoice::get ( ) const
inlinenoexcept

Get a pointer to the referenced voice.

◆ isValid()

bool lmms::FluidVoice::isValid ( ) const
inline

Test whether this object still refers to the original voice.

Member Data Documentation

◆ m_coarseTune

float lmms::FluidVoice::m_coarseTune
private

◆ m_id

unsigned int lmms::FluidVoice::m_id
private

◆ m_voice

fluid_voice_t* lmms::FluidVoice::m_voice
private

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