|
libopenmpt
0.2.10050
cross-platform C++ and C library to decode tracked music files
|
Namespaces | |
| ext | |
| string | |
Classes | |
| class | exception |
| libopenmpt exception base class More... | |
| class | module |
| class | module_ext |
Functions | |
| LIBOPENMPT_CXX_API std::uint32_t | get_library_version () |
| Get the libopenmpt version number. More... | |
| LIBOPENMPT_CXX_API std::uint32_t | get_core_version () |
| Get the core version number. More... | |
| LIBOPENMPT_CXX_API std::vector < std::string > | get_supported_extensions () |
| Get a list of supported file extensions. More... | |
| LIBOPENMPT_CXX_API bool | is_extension_supported (const std::string &extension) |
| Query whether a file extension is supported. More... | |
| LIBOPENMPT_CXX_API double | could_open_propability (std::istream &stream, double effort=1.0, std::ostream &log=std::clog) |
| Roughly scan the input stream to find out whether libopenmpt might be able to open it. More... | |
| LIBOPENMPT_CXX_API double openmpt::could_open_propability | ( | std::istream & | stream, |
| double | effort = 1.0, |
||
| std::ostream & | log = std::clog |
||
| ) |
Roughly scan the input stream to find out whether libopenmpt might be able to open it.
| stream | Input stream to scan. |
| effort | Effort to make when validating stream. Effort 0.0 does not even look at stream at all and effort 1.0 completely loads the file from stream. A lower effort requires less data to be loaded but only gives a rough estimate answer. Use an effort of 0.25 to only verify the header data of the module file. |
| log | Log where warning and errors are written. |
| LIBOPENMPT_CXX_API std::uint32_t openmpt::get_core_version | ( | ) |
Get the core version number.
Return the OpenMPT core version number.
| LIBOPENMPT_CXX_API std::uint32_t openmpt::get_library_version | ( | ) |
Get the libopenmpt version number.
Returns the libopenmpt version number.
| LIBOPENMPT_CXX_API std::vector<std::string> openmpt::get_supported_extensions | ( | ) |
Get a list of supported file extensions.
| LIBOPENMPT_CXX_API bool openmpt::is_extension_supported | ( | const std::string & | extension | ) |
Query whether a file extension is supported.
| extension | file extension to query without a leading dot. The case is ignored. |