Skip to content

Commit

Permalink
Correcoes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui Seara Junior committed Oct 22, 2024
1 parent 9ddf539 commit 7423d8e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions RtAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
#include <climits>
#include <cmath>
#include <algorithm>
#include <codecvt>
#include <locale>

#if defined(_WIN32)
#include <codecvt>
#include <windows.h>
#endif

Expand All @@ -71,6 +71,7 @@ std::string convertCharPointerToStdString(const char *text)
return text;
}

#ifdef __WIN32__
template<> inline
std::string convertCharPointerToStdString(const wchar_t* text)
{
Expand All @@ -91,6 +92,7 @@ std::string convertCharPointerToStdString(const wchar_t* text)
return std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>>{}.to_bytes(text);
#endif
}
#endif

#if defined(_MSC_VER)
#define MUTEX_INITIALIZE(A) InitializeCriticalSection(A)
Expand Down Expand Up @@ -403,7 +405,7 @@ class RtApiDummy: public RtApi
{
public:

RtApiDummy() { errorText_ = "RtApiDummy: This class provides no functionality."; error( RTAUDIO_WARNING ); }
RtApiDummy() { /*errorText_ = "RtApiDummy: This class provides no functionality."; error( RTAUDIO_WARNING ); */}
RtAudio::Api getCurrentApi( void ) override { return RtAudio::RTAUDIO_DUMMY; }
void closeStream( void ) override {}
RtAudioErrorType startStream( void ) override { return RTAUDIO_NO_ERROR; }
Expand Down Expand Up @@ -1230,8 +1232,8 @@ bool RtApiCore :: probeDeviceInfo( AudioDeviceID id, RtAudio::DeviceInfo& info )
#else
CFStringGetCString(cfname, mname, length * 3 + 1, CFStringGetSystemEncoding());
#endif
info.name.append( (const char *)mname, strlen(mname) );
info.name.append( ": " );
// info.name.append( (const char *)mname, strlen(mname) );
// info.name.append( ": " );
CFRelease( cfname );
free(mname);

Expand Down

0 comments on commit 7423d8e

Please sign in to comment.