diff options
| author | JP Cimalando <jp-dev@inbox.ru> | 2018-05-07 17:30:27 +0200 |
|---|---|---|
| committer | JP Cimalando <jp-dev@inbox.ru> | 2018-05-07 19:20:23 +0200 |
| commit | f7b624ba819036b9ebfb3f4d0517fd45e01919b2 (patch) | |
| tree | 5f31ce4d7ec0b8f6c90a85a3de0e533691d94104 /RtAudio.h | |
| parent | 4a7ca4f1d42fff04eb085d85a3b298df2c937a34 (diff) | |
API names, and conversion from/to API identifier
Diffstat (limited to 'RtAudio.h')
| -rw-r--r-- | RtAudio.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -397,6 +397,21 @@ class RTAUDIO_DLL_PUBLIC RtAudio */ static void getCompiledApi( std::vector<RtAudio::Api> &apis ); + //! Return the name of a specified compiled audio API. + /*! + If the API is unknown or not compiled, this function will return + the empty string. + */ + static const std::string &getCompiledApiName( RtAudio::Api api ); + + //! Return the compiled audio API having the given name. + /*! + A case insensitive comparison will check the specified name + against the list of compiled APIs, and return the one which + matches. On failure, the function returns UNSPECIFIED. + */ + static RtAudio::Api getCompiledApiByName( const std::string &name ); + //! The class constructor. /*! The constructor performs minor initialization tasks. An exception |
