From 021928773bfbf9b25505677451ee197b1fe006b6 Mon Sep 17 00:00:00 2001 From: JP Cimalando Date: Wed, 8 Aug 2018 00:36:22 +0200 Subject: Use short lower-case names as API identifiers --- rtaudio_c.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rtaudio_c.cpp') 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) { -- cgit v1.2.3