diff --git a/CMakeLists.txt b/CMakeLists.txt index 75d549f9..d382d319 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,6 +58,13 @@ option(RTAUDIO_API_PULSE "Build PulseAudio API" ${pulse_FOUND}) option(RTAUDIO_API_JACK "Build JACK audio server API" ${HAVE_JACK}) option(RTAUDIO_API_CORE "Build CoreAudio API" ${APPLE}) +# String encoding +option(RTAUDIO_UNICODE "Request UTF-8 encoded strings from system calls" OFF) + +if (RTAUDIO_UNICODE) + add_definitions(-DUNICODE) +endif () + # Check for functions include(CheckFunctionExists) check_function_exists(gettimeofday HAVE_GETTIMEOFDAY) diff --git a/RtAudio.cpp b/RtAudio.cpp index 3710dcab..7f38855b 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -11210,8 +11210,8 @@ void RtApi :: convertBuffer( char *outBuffer, char *inBuffer, ConvertInfo &info Float32 *in = (Float32 *)inBuffer; for (unsigned int i=0; i