summaryrefslogtreecommitdiff
path: root/RtAudio.h
diff options
context:
space:
mode:
authorJP Cimalando <jp-dev@inbox.ru>2018-05-07 17:30:27 +0200
committerJP Cimalando <jp-dev@inbox.ru>2018-05-07 19:20:23 +0200
commitf7b624ba819036b9ebfb3f4d0517fd45e01919b2 (patch)
tree5f31ce4d7ec0b8f6c90a85a3de0e533691d94104 /RtAudio.h
parent4a7ca4f1d42fff04eb085d85a3b298df2c937a34 (diff)
API names, and conversion from/to API identifier
Diffstat (limited to 'RtAudio.h')
-rw-r--r--RtAudio.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/RtAudio.h b/RtAudio.h
index 34a2534..91124cf 100644
--- a/RtAudio.h
+++ b/RtAudio.h
@@ -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