|
OpenGothic
Open source reimplementation of Gothic I and II
|
#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< Data > | shared (const DlsCollection &dls, const std::vector< Wave > &wave) |
| static void | noteOff (Ticket &t) |
Definition at line 11 of file soundfont.h.
| anonymous enum |
| Enumerator | |
|---|---|
| SampleRate | |
| BitsPerSec | |
Definition at line 17 of file soundfont.h.
| SoundFont::SoundFont | ( | ) |
Definition at line 237 of file soundfont.cpp.
| SoundFont::SoundFont | ( | std::shared_ptr< Data > & | sh, |
| uint32_t | dwPatch | ||
| ) |
Definition at line 240 of file soundfont.cpp.
| SoundFont::~SoundFont | ( | ) |
Definition at line 244 of file soundfont.cpp.
| bool SoundFont::hasNotes | ( | ) | const |
Definition at line 251 of file soundfont.cpp.
| void SoundFont::mix | ( | float * | samples, |
| size_t | count | ||
| ) |
Definition at line 267 of file soundfont.cpp.
|
static |
Definition at line 282 of file soundfont.cpp.
| SoundFont::Ticket SoundFont::noteOn | ( | uint8_t | note, |
| uint8_t | velosity | ||
| ) |
Definition at line 273 of file soundfont.cpp.
| void SoundFont::setPan | ( | float | p | ) |
Definition at line 261 of file soundfont.cpp.
| void SoundFont::setVolume | ( | float | v | ) |
Definition at line 257 of file soundfont.cpp.
|
static |
Definition at line 247 of file soundfont.cpp.