From 506f4cdf5aa5ed74f6ab47616fbf1ea1ab54e328 Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Tue, 21 Aug 2007 17:40:16 +0000 Subject: - Missing RtError:: for WARNING in RtAudio.h (RtApiDummy) (GS) - Deleted "+1" in c++ append command for RtApiCore device naming (GS) --- RtAudio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'RtAudio.cpp') diff --git a/RtAudio.cpp b/RtAudio.cpp index 376319c..dd76b59 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -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; -- cgit v1.2.3