Skip to content

Commit

Permalink
alignment fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmelas authored and philburk committed Jan 21, 2021
1 parent 9a1fa58 commit 51e075d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/hostapi/coreaudio/pa_mac_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1137,26 +1137,26 @@ static OSStatus SetupDevicePropertyListeners( PaMacCoreStream *stream, AudioDevi
AudioDevicePropertyActualSampleRateListenerProc, stream );

PaMacCore_AudioDeviceAddPropertyListener( deviceID, 0, isInput, kAudioStreamPropertyLatency,
AudioDevicePropertyGenericListenerProc, stream );
AudioDevicePropertyGenericListenerProc, stream );
PaMacCore_AudioDeviceAddPropertyListener( deviceID, 0, isInput, kAudioDevicePropertyBufferFrameSize,
AudioDevicePropertyGenericListenerProc, stream );
AudioDevicePropertyGenericListenerProc, stream );
PaMacCore_AudioDeviceAddPropertyListener( deviceID, 0, isInput, kAudioDevicePropertySafetyOffset,
AudioDevicePropertyGenericListenerProc, stream );
AudioDevicePropertyGenericListenerProc, stream );

return osErr;
}

static void CleanupDevicePropertyListeners( PaMacCoreStream *stream, AudioDeviceID deviceID, Boolean isInput )
{
PaMacCore_AudioDeviceRemovePropertyListener( deviceID, 0, isInput, kAudioDevicePropertyActualSampleRate,
AudioDevicePropertyActualSampleRateListenerProc, stream );
AudioDevicePropertyActualSampleRateListenerProc, stream );

PaMacCore_AudioDeviceRemovePropertyListener( deviceID, 0, isInput, kAudioDevicePropertyLatency,
AudioDevicePropertyGenericListenerProc, stream );
AudioDevicePropertyGenericListenerProc, stream );
PaMacCore_AudioDeviceRemovePropertyListener( deviceID, 0, isInput, kAudioDevicePropertyBufferFrameSize,
AudioDevicePropertyGenericListenerProc, stream );
AudioDevicePropertyGenericListenerProc, stream );
PaMacCore_AudioDeviceRemovePropertyListener( deviceID, 0, isInput, kAudioDevicePropertySafetyOffset,
AudioDevicePropertyGenericListenerProc, stream );
AudioDevicePropertyGenericListenerProc, stream );
}

/* ================================================================================= */
Expand Down

0 comments on commit 51e075d

Please sign in to comment.