@@ -77,7 +77,7 @@ - (instancetype)initWithNativeModule:(rtc::scoped_refptr<webrtc::AudioDeviceModu
77
77
});
78
78
}
79
79
80
- - (RTCIODevice *)outputDevice {
80
+ - (RTC_OBJC_TYPE( RTCIODevice) *)outputDevice {
81
81
return _workerThread->BlockingCall ([self ] {
82
82
83
83
NSArray <RTC_OBJC_TYPE (RTCIODevice) *> *devices = [self _outputDevices ];
@@ -92,11 +92,11 @@ - (RTCIODevice *)outputDevice {
92
92
});
93
93
}
94
94
95
- - (void )setOutputDevice : (RTCIODevice *)device {
95
+ - (void )setOutputDevice : (RTC_OBJC_TYPE( RTCIODevice) *)device {
96
96
[self trySetOutputDevice: device];
97
97
}
98
98
99
- - (BOOL )trySetOutputDevice : (RTCIODevice *)device {
99
+ - (BOOL )trySetOutputDevice : (RTC_OBJC_TYPE( RTCIODevice) *)device {
100
100
101
101
return _workerThread->BlockingCall ([self , device] {
102
102
@@ -108,7 +108,7 @@ - (BOOL)trySetOutputDevice: (RTCIODevice *)device {
108
108
}
109
109
110
110
if (device != nil ) {
111
- index = [devices indexOfObjectPassingTest: ^BOOL (RTCIODevice *e, NSUInteger i, BOOL *stop) {
111
+ index = [devices indexOfObjectPassingTest: ^BOOL (RTC_OBJC_TYPE ( RTCIODevice) *e, NSUInteger i, BOOL *stop) {
112
112
return (*stop = [e.deviceId isEqualToString: device.deviceId]);
113
113
}];
114
114
if (index == NSNotFound ) {
@@ -129,7 +129,7 @@ - (BOOL)trySetOutputDevice: (RTCIODevice *)device {
129
129
});
130
130
}
131
131
132
- - (RTCIODevice *)inputDevice {
132
+ - (RTC_OBJC_TYPE( RTCIODevice) *)inputDevice {
133
133
134
134
return _workerThread->BlockingCall ([self ] {
135
135
@@ -145,11 +145,11 @@ - (RTCIODevice *)inputDevice {
145
145
});
146
146
}
147
147
148
- - (void )setInputDevice : (RTCIODevice *)device {
148
+ - (void )setInputDevice : (RTC_OBJC_TYPE( RTCIODevice) *)device {
149
149
[self trySetInputDevice: device];
150
150
}
151
151
152
- - (BOOL )trySetInputDevice : (RTCIODevice *)device {
152
+ - (BOOL )trySetInputDevice : (RTC_OBJC_TYPE( RTCIODevice) *)device {
153
153
154
154
return _workerThread->BlockingCall ([self , device] {
155
155
@@ -161,7 +161,7 @@ - (BOOL)trySetInputDevice: (RTCIODevice *)device {
161
161
}
162
162
163
163
if (device != nil ) {
164
- index = [devices indexOfObjectPassingTest: ^BOOL (RTCIODevice *e, NSUInteger i, BOOL *stop) {
164
+ index = [devices indexOfObjectPassingTest: ^BOOL (RTC_OBJC_TYPE ( RTCIODevice) *e, NSUInteger i, BOOL *stop) {
165
165
return (*stop = [e.deviceId isEqualToString: device.deviceId]);
166
166
}];
167
167
if (index == NSNotFound ) {
@@ -261,7 +261,7 @@ - (BOOL)setDevicesUpdatedHandler: (nullable RTCOnAudioDevicesDidUpdate) handler
261
261
_native->PlayoutDeviceName (i, name, guid);
262
262
NSString *strGUID = [[NSString alloc ] initWithCString: guid encoding: NSUTF8StringEncoding];
263
263
NSString *strName = [[NSString alloc ] initWithCString: name encoding: NSUTF8StringEncoding];
264
- RTCIODevice *device = [[RTCIODevice alloc ] initWithType: RTCIODeviceTypeOutput deviceId: strGUID name: strName];
264
+ RTC_OBJC_TYPE ( RTCIODevice) *device = [[RTC_OBJC_TYPE ( RTCIODevice) alloc ] initWithType: RTCIODeviceTypeOutput deviceId: strGUID name: strName];
265
265
[result addObject: device];
266
266
}
267
267
}
@@ -283,7 +283,7 @@ - (BOOL)setDevicesUpdatedHandler: (nullable RTCOnAudioDevicesDidUpdate) handler
283
283
_native->RecordingDeviceName (i, name, guid);
284
284
NSString *strGUID = [[NSString alloc ] initWithCString: guid encoding: NSUTF8StringEncoding];
285
285
NSString *strName = [[NSString alloc ] initWithCString: name encoding: NSUTF8StringEncoding];
286
- RTCIODevice *device = [[RTCIODevice alloc ] initWithType: RTCIODeviceTypeInput deviceId: strGUID name: strName];
286
+ RTC_OBJC_TYPE ( RTCIODevice) *device = [[RTC_OBJC_TYPE ( RTCIODevice) alloc ] initWithType: RTCIODeviceTypeInput deviceId: strGUID name: strName];
287
287
[result addObject: device];
288
288
}
289
289
}
0 commit comments