OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
Dx8::SoundFont Class Referencefinal

#include <soundfont.h>

Classes

struct  Data
 
struct  Impl
 
struct  Instance
 
class  Ticket
 

Public Types

enum  { SampleRate = 44100 , BitsPerSec = SampleRate*2*16 }
 

Public Member Functions

 SoundFont ()
 
 SoundFont (std::shared_ptr< Data > &sh, uint32_t dwPatch)
 
 ~SoundFont ()
 
bool hasNotes () const
 
void setVolume (float v)
 
void setPan (float p)
 
void mix (float *samples, size_t count)
 
Ticket noteOn (uint8_t note, uint8_t velosity)
 

Static Public Member Functions

static std::shared_ptr< Datashared (const DlsCollection &dls, const std::vector< Wave > &wave)
 
static void noteOff (Ticket &t)
 

Detailed Description

Definition at line 11 of file soundfont.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SampleRate 
BitsPerSec 

Definition at line 17 of file soundfont.h.

Constructor & Destructor Documentation

◆ SoundFont() [1/2]

SoundFont::SoundFont ( )

Definition at line 237 of file soundfont.cpp.

◆ SoundFont() [2/2]

SoundFont::SoundFont ( std::shared_ptr< Data > &  sh,
uint32_t  dwPatch 
)

Definition at line 240 of file soundfont.cpp.

◆ ~SoundFont()

SoundFont::~SoundFont ( )

Definition at line 244 of file soundfont.cpp.

Member Function Documentation

◆ hasNotes()

bool SoundFont::hasNotes ( ) const

Definition at line 251 of file soundfont.cpp.

◆ mix()

void SoundFont::mix ( float *  samples,
size_t  count 
)

Definition at line 267 of file soundfont.cpp.

◆ noteOff()

void SoundFont::noteOff ( SoundFont::Ticket t)
static

Definition at line 282 of file soundfont.cpp.

◆ noteOn()

SoundFont::Ticket SoundFont::noteOn ( uint8_t  note,
uint8_t  velosity 
)

Definition at line 273 of file soundfont.cpp.

◆ setPan()

void SoundFont::setPan ( float  p)

Definition at line 261 of file soundfont.cpp.

◆ setVolume()

void SoundFont::setVolume ( float  v)

Definition at line 257 of file soundfont.cpp.

◆ shared()

std::shared_ptr< SoundFont::Data > SoundFont::shared ( const DlsCollection dls,
const std::vector< Wave > &  wave 
)
static

Definition at line 247 of file soundfont.cpp.


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