Cog/Plugins/MIDI/MIDI/BMPlayer.h
Christopher Snowhill 27478e5df2 Update libVGM and BASSMIDI, SF3 support
BASSMIDI now includes SF3 support, as well as several other changes.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-06-29 23:27:28 -07:00

43 lines
891 B
C++

#ifndef __BMPlayer_h__
#define __BMPlayer_h__
#include "MIDIPlayer.h"
#include <bassmidi.h>
typedef struct sflist_presets sflist_presets;
class BMPlayer : public MIDIPlayer {
public:
// zero variables
BMPlayer();
// close, unload
virtual ~BMPlayer();
// configuration
void setSoundFont(const char* in);
void setFileSoundFont(const char* in);
void setSincInterpolation(bool enable = true);
private:
virtual void send_event(uint32_t b);
virtual void send_sysex(const uint8_t* data, size_t size, size_t port);
virtual void render(float* out, unsigned long count);
virtual void shutdown();
virtual bool startup();
void reset_parameters();
std::vector<HSOUNDFONT> _soundFonts;
sflist_presets* _presetList;
std::string sSoundFontName;
std::string sFileSoundFontName;
HSTREAM _stream;
bool bSincInterpolation;
};
#endif