diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2014-03-11 12:45:13 -0400 |
|---|---|---|
| committer | Gary Scavone <gary@music.mcgill.ca> | 2014-03-11 12:45:13 -0400 |
| commit | 015f3721b7a53d40543a734f4916a3dc0c3713da (patch) | |
| tree | fa162a5ae7fe59d82ce12d3f439a451845392562 /RtAudio.cpp | |
| parent | b8f788ee2ab8da7fdd12b7fc09475e7529512cd1 (diff) | |
Bug fix for OS-X xrun reporting, plus small efficiency change to getVersion() function.
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp index e5d12d1..efed868 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -77,7 +77,7 @@ const unsigned int RtApi::SAMPLE_RATES[] = { std::string RtAudio :: getVersion( void ) throw()
{
- return std::string( RTAUDIO_VERSION );
+ return RTAUDIO_VERSION;
}
void RtAudio :: getCompiledApi( std::vector<RtAudio::Api> &apis ) throw()
@@ -1324,6 +1324,7 @@ bool RtApiCore :: probeDeviceOpen( unsigned int device, StreamMode mode, unsigne // Setup the device property listener for over/underload.
property.mSelector = kAudioDeviceProcessorOverload;
+ property.mScope = kAudioObjectPropertyScopeGlobal;
result = AudioObjectAddPropertyListener( id, &property, xrunListener, (void *) handle );
return SUCCESS;
|
