- Missing RtError:: for WARNING in RtAudio.h (RtApiDummy) (GS)
authorGary Scavone <gary@music.mcgill.ca>
Tue, 21 Aug 2007 17:40:16 +0000 (17:40 +0000)
committerStephen Sinclair <sinclair@music.mcgill.ca>
Thu, 10 Oct 2013 23:24:07 +0000 (01:24 +0200)
- Deleted "+1" in c++ append command for RtApiCore device naming (GS)

RtAudio.cpp
RtAudio.h

index 376319c751210e71cfd1e02c7288d68332cae84f..dd76b59fe0c045224cb3a5c1ef47f178f43c192c 100644 (file)
@@ -539,7 +539,7 @@ RtAudio::DeviceInfo RtApiCore :: getDeviceInfo( unsigned int device )
     error( RtError::WARNING );
     return info;
   }
-  info.name.append( (const char *)name, strlen(name) + 1 );
+  info.name.append( (const char *)name, strlen(name) );
   info.name.append( ": " );
 
   dataSize = 256;
@@ -552,7 +552,7 @@ RtAudio::DeviceInfo RtApiCore :: getDeviceInfo( unsigned int device )
     error( RtError::WARNING );
     return info;
   }
-  info.name.append( (const char *)name, strlen(name) + 1 );
+  info.name.append( (const char *)name, strlen(name) );
 
   // Get the output stream "configuration".
   AudioBufferList      *bufferList = nil;
index 1c54e9767b37e8aced8d8b4e133d58f5d840dbb8..db90a8202be48a49dee0dcff512d344b8d5650e2 100644 (file)
--- a/RtAudio.h
+++ b/RtAudio.h
@@ -911,7 +911,7 @@ class RtApiDummy: public RtApi
 {
 public:
 
-  RtApiDummy() { errorText_ = "RtApiDummy: This class provides no functionality."; error( WARNING ); };
+  RtApiDummy() { errorText_ = "RtApiDummy: This class provides no functionality."; error( RtError::WARNING ); };
   RtAudio::Api getCurrentApi( void ) { return RtAudio::RTAUDIO_DUMMY; };
   unsigned int getDeviceCount( void ) { return 0; };
   RtAudio::DeviceInfo getDeviceInfo( unsigned int device ) { RtAudio::DeviceInfo info; return info; };