aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/midi/base.h
Commit message (Collapse)AuthorAgeFilesLines
* Add alLoadSoundfontSOFT to load a soundfont via callbackChris Robinson2013-12-281-0/+12
| | | | | | | | | | | | | | | | | | | | | Some hefty caveats: This function is not thread-safe. In particular, the current context affecting the thread must not be changed, and the provided soundfont must not be altered while the function is executing. Ideally, this will be fixed. Error handling is poor. Some RIFF structure errors may not be caught (e.g. sub- chunks with sizes greater than the parent chunk allows for), and generated AL errors are ignored, possibly leading to resource leaks in certain situations. These should be fixed in time. There is minimal error checking on the provided soundfont ID. It does not ensure a valid ID has been provided, nor does it ensure the provided soundfont can be modified. These short-comings should be fixed eventually. Proper cleanup is the responsibility of the caller. The caller must get the preset objects from the soundfont before deleting it, and the fontsound objects from each preset before deleting them, to make sure all resources are properly deleted.
* Add a method to set and get soundfontsChris Robinson2013-12-271-0/+7
| | | | | The main purpose of this is to select soundfonts for playback, eventually, instead of the existing method that takes a filename.
* Fix header guard and remove duplicate codeChris Robinson2013-12-181-3/+3
|
* Move the base MidiSynth to a separate fileChris Robinson2013-12-171-0/+113