Less noisy.
This commit is contained in:
@@ -337,13 +337,11 @@ OSStatus RageSound_CA::JackChanged( AudioDeviceID inDevice, UInt32 inChannel, Bo
|
|||||||
AudioTimeStamp time;
|
AudioTimeStamp time;
|
||||||
|
|
||||||
This->m_pOutputDevice->GetPropertyData( inChannel, 0, inPropertyID, size, &result );
|
This->m_pOutputDevice->GetPropertyData( inChannel, 0, inPropertyID, size, &result );
|
||||||
LOG->Trace( "Channel %u's has %s plugged into its jack.", unsigned(inChannel),
|
CHECKPOINT_M( ssprintf("Channel %u's has %s plugged into its jack.", unsigned(inChannel),
|
||||||
result ? "something" : "nothing" );
|
result ? "something" : "nothing") );
|
||||||
|
|
||||||
LOG->Trace( "Old offset: %lld.", This->m_iOffset );
|
|
||||||
This->m_pOutputDevice->GetCurrentTime( time );
|
This->m_pOutputDevice->GetCurrentTime( time );
|
||||||
This->m_iOffset = This->m_iLastSampleTime - int64_t( time.mSampleTime );
|
This->m_iOffset = This->m_iLastSampleTime - int64_t( time.mSampleTime );
|
||||||
LOG->Trace( "New offset: %lld.", This->m_iOffset );
|
|
||||||
return noErr;
|
return noErr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user