File tree 4 files changed +32
-29
lines changed
4 files changed +32
-29
lines changed Original file line number Diff line number Diff line change @@ -50,3 +50,6 @@ SpaceAfterTemplateKeyword: false
50
50
SpaceBeforeParens : NonEmptyParentheses
51
51
SpacesInConditionalStatement : true
52
52
SpacesInParentheses : true
53
+ ObjCBlockIndentWidth : 4
54
+ ObjCSpaceAfterProperty : true
55
+ ObjCSpaceBeforeProtocolList : true
Original file line number Diff line number Diff line change 18
18
- uses : DoozyX/clang-format-lint-action@2a28e3a8d9553f244243f7e1ff94f6685dff87be
19
19
with :
20
20
clangFormatVersion : 10
21
- extensions : ' cpp,h'
21
+ extensions : ' cpp,h,mm '
Original file line number Diff line number Diff line change 42
42
43
43
[[AVAudioSession sharedInstance ] setCategory: AVAudioSessionCategoryPlayAndRecord error: &audioSessionError];
44
44
[[AVAudioSession sharedInstance ] requestRecordPermission: ^( BOOL granted ) {
45
- if ( granted )
46
- {
47
- // ok
48
- }
49
- else
50
- {
51
- // TODO - alert user
52
- }
45
+ if ( granted )
46
+ {
47
+ // ok
48
+ }
49
+ else
50
+ {
51
+ // TODO - alert user
52
+ }
53
53
}];
54
54
[[AVAudioSession sharedInstance ] setMode: AVAudioSessionModeMeasurement error: &audioSessionError];
55
55
}
@@ -226,18 +226,18 @@ And because Jamulus uses the same buffer to store input and output data (input i
226
226
227
227
if ( !isInitialized )
228
228
{
229
- [[NSNotificationCenter defaultCenter ] addObserverForName: AVAudioSessionRouteChangeNotification
230
- object: nil
231
- queue :nil
232
- usingBlock: ^( NSNotification * notification ) {
233
- UInt8 reason =
234
- [[notification.userInfo valueForKey: AVAudioSessionRouteChangeReasonKey] intValue ];
235
- if ( reason == AVAudioSessionRouteChangeReasonNewDeviceAvailable or
236
- reason == AVAudioSessionRouteChangeReasonOldDeviceUnavailable )
237
- {
238
- emit ReinitRequest ( RS_RELOAD_RESTART_AND_INIT ); // reload the available devices frame
239
- }
240
- }];
229
+ [[NSNotificationCenter defaultCenter ]
230
+ addObserverForName: AVAudioSessionRouteChangeNotification
231
+ object :nil
232
+ queue: nil
233
+ usingBlock: ^( NSNotification * notification ) {
234
+ UInt8 reason = [[notification.userInfo valueForKey: AVAudioSessionRouteChangeReasonKey] intValue ];
235
+ if ( reason == AVAudioSessionRouteChangeReasonNewDeviceAvailable or
236
+ reason == AVAudioSessionRouteChangeReasonOldDeviceUnavailable )
237
+ {
238
+ emit ReinitRequest ( RS_RELOAD_RESTART_AND_INIT ); // reload the available devices frame
239
+ }
240
+ }];
241
241
}
242
242
243
243
isInitialized = true ;
Original file line number Diff line number Diff line change 31
31
id <NSObject > activityId;
32
32
};
33
33
34
- CActivity::CActivity () : pActivity( new CActivityId()) {}
34
+ CActivity::CActivity () : pActivity ( new CActivityId() ) {}
35
35
36
- CActivity::~CActivity ()
37
- {
38
- delete pActivity;
39
- }
36
+ CActivity::~CActivity () { delete pActivity; }
40
37
41
38
void CActivity::BeginActivity ()
42
39
{
43
- NSActivityOptions options = NSActivityBackground | NSActivityIdleDisplaySleepDisabled | NSActivityIdleSystemSleepDisabled | NSActivityLatencyCritical ;
40
+ NSActivityOptions options =
41
+ NSActivityBackground | NSActivityIdleDisplaySleepDisabled | NSActivityIdleSystemSleepDisabled | NSActivityLatencyCritical ;
44
42
45
- pActivity->activityId = [[NSProcessInfo processInfo ] beginActivityWithOptions: options reason: @" Jamulus provides low latency audio processing and should not be inturrupted by system throttling." ];
43
+ pActivity->activityId = [[NSProcessInfo processInfo ]
44
+ beginActivityWithOptions: options
45
+ reason: @" Jamulus provides low latency audio processing and should not be inturrupted by system throttling." ];
46
46
}
47
47
48
48
void CActivity::EndActivity ()
49
49
{
50
- [[NSProcessInfo processInfo ] endActivity: pActivity->activityId];
50
+ [[NSProcessInfo processInfo ] endActivity: pActivity->activityId];
51
51
52
52
pActivity->activityId = nil ;
53
53
}
You can’t perform that action at this time.
0 commit comments