summaryrefslogtreecommitdiff
path: root/rtaudio_c.cpp
diff options
context:
space:
mode:
authorJP Cimalando <jpcima@users.noreply.github.com>2018-08-08 00:36:22 +0200
committerJP Cimalando <jpcima@users.noreply.github.com>2018-08-08 00:43:31 +0200
commit021928773bfbf9b25505677451ee197b1fe006b6 (patch)
treed926b77d97bfc0fe670f527e43b8d5046eadfcb0 /rtaudio_c.cpp
parentee6fd4b4609a1c05a3f4ded4c8022b5ba84d7afd (diff)
Use short lower-case names as API identifiers
Diffstat (limited to 'rtaudio_c.cpp')
-rw-r--r--rtaudio_c.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/rtaudio_c.cpp b/rtaudio_c.cpp
index f831655..ec84941 100644
--- a/rtaudio_c.cpp
+++ b/rtaudio_c.cpp
@@ -55,6 +55,12 @@ const char *rtaudio_compiled_api_name(rtaudio_api_t api) {
return name.empty() ? NULL : name.c_str();
}
+const char *rtaudio_compiled_api_display_name(rtaudio_api_t api)
+{
+ const std::string &name = RtAudio::getCompiledApiDisplayName((RtAudio::Api)api);
+ return name.empty() ? NULL : name.c_str();
+}
+
rtaudio_api_t rtaudio_compiled_api_by_name(const char *name) {
RtAudio::Api api = RtAudio::UNSPECIFIED;
if (name) {