BASSMIDI decoder.
More...
#include <DecoderBassmidi.h>
|
| static auto | setDefaultSoundfont (const std::string &filename) -> bool |
| | Set the default soundfont. More...
|
| |
| template<class... Decoders> |
| static auto | decoderFor (const std::string &filename) -> std::unique_ptr< Decoder > |
| | Find and return an instance of the first decoder that can open the specified file. More...
|
| |
| template<class... Decoders> |
| static auto | decoderFor (SDL_RWops *rwops) -> std::unique_ptr< Decoder > |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
| |
| static auto | decoderFor (const std::string &filename) -> std::unique_ptr< Decoder > |
| | Find and return an instance of the first decoder that can open the specified file. More...
|
| |
| static auto | decoderFor (SDL_RWops *rwops) -> std::unique_ptr< Decoder > |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
| |
|
| auto | doDecoding (float buf[], int len, bool &callAgain) -> int override |
| |
| void | setIsOpen (bool f) |
| |
| virtual auto | doDecoding (float buf[], int len, bool &callAgain) -> int=0 |
| |
◆ DecoderBassmidi()
| Aulib::DecoderBassmidi::DecoderBassmidi |
( |
| ) |
|
◆ ~DecoderBassmidi()
| Aulib::DecoderBassmidi::~DecoderBassmidi |
( |
| ) |
|
|
override |
◆ doDecoding()
| auto Aulib::DecoderBassmidi::doDecoding |
( |
float |
buf[], |
|
|
int |
len, |
|
|
bool & |
callAgain |
|
) |
| -> int |
|
overrideprotectedvirtual |
◆ duration()
| auto Aulib::DecoderBassmidi::duration |
( |
| ) |
const -> std::chrono::microseconds |
|
overridevirtual |
◆ getChannels()
| auto Aulib::DecoderBassmidi::getChannels |
( |
| ) |
const -> int |
|
overridevirtual |
◆ getRate()
| auto Aulib::DecoderBassmidi::getRate |
( |
| ) |
const -> int |
|
overridevirtual |
◆ open()
| auto Aulib::DecoderBassmidi::open |
( |
SDL_RWops * |
rwops | ) |
-> bool |
|
overridevirtual |
◆ rewind()
| auto Aulib::DecoderBassmidi::rewind |
( |
| ) |
-> bool |
|
overridevirtual |
◆ seekToTime()
| auto Aulib::DecoderBassmidi::seekToTime |
( |
std::chrono::microseconds |
pos | ) |
-> bool |
|
overridevirtual |
◆ setDefaultSoundfont()
| static auto Aulib::DecoderBassmidi::setDefaultSoundfont |
( |
const std::string & |
filename | ) |
-> bool |
|
static |
Set the default soundfont.
The soundfont will be used for all subsequently opened instances. Instances for which open() has been called already are not affected.
- Parameters
-
| filename | The soundfont file to use. |
- Returns
- Return values
-
| true | The default soundfont was successfully set. |
| false | An error occured. |