diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2009-05-17 21:11:45 +0000 |
|---|---|---|
| committer | Stephen Sinclair <sinclair@music.mcgill.ca> | 2013-10-11 01:38:25 +0200 |
| commit | 089a6da80694960318b86201b2fab3caa2680113 (patch) | |
| tree | 67c7d13be9f9e6723ae4392411814933c1a98210 /RtAudio.cpp | |
| parent | 1022a7876a6ef1980ad5518340df177814783c7f (diff) | |
Bug fixes for ALSA buffersize setting and new OS X 10.5 variable (GS).
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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; |
