Browse Source

Bug fix for OS-X xrun reporting, plus small efficiency change to getVersion() function.

tags/4.1.0
Gary Scavone 11 years ago
parent
commit
015f3721b7
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      RtAudio.cpp

+ 2
- 1
RtAudio.cpp View File

@@ -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;


Loading…
Cancel
Save