From 089a6da80694960318b86201b2fab3caa2680113 Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Sun, 17 May 2009 21:11:45 +0000 Subject: Bug fixes for ALSA buffersize setting and new OS X 10.5 variable (GS). --- RtAudio.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'RtAudio.cpp') diff --git a/RtAudio.cpp b/RtAudio.cpp index cd427f3..61cba82 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -403,7 +403,9 @@ unsigned int RtApi :: getStreamSampleRate( void ) // implementation. struct CoreHandle { AudioDeviceID id[2]; // device ids +#if defined( MAC_OS_X_VERSION_10_5 ) && ( MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 ) AudioDeviceIOProcID procId[2]; +#endif UInt32 iStream[2]; // device stream index (or first if using multiple) UInt32 nStreams[2]; // number of streams to use bool xrun[2]; @@ -5646,7 +5648,7 @@ bool RtApiAlsa :: probeDeviceOpen( unsigned int device, StreamMode mode, unsigne } // Set the buffer number, which in ALSA is referred to as the "period". - int totalSize, dir; + int totalSize, dir = 0; unsigned int periods = 0; if ( options ) periods = options->numberOfBuffers; totalSize = *bufferSize * periods; -- cgit v1.2.3