diff options
| author | JP Cimalando <jpcima@users.noreply.github.com> | 2018-08-08 00:36:22 +0200 |
|---|---|---|
| committer | JP Cimalando <jpcima@users.noreply.github.com> | 2018-08-08 00:43:31 +0200 |
| commit | 021928773bfbf9b25505677451ee197b1fe006b6 (patch) | |
| tree | d926b77d97bfc0fe670f527e43b8d5046eadfcb0 /rtaudio_c.cpp | |
| parent | ee6fd4b4609a1c05a3f4ded4c8022b5ba84d7afd (diff) | |
Use short lower-case names as API identifiers
Diffstat (limited to 'rtaudio_c.cpp')
| -rw-r--r-- | rtaudio_c.cpp | 6 |
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) { |
