Skip to content

Commit 0df968e

Browse files
authored
Fix missing RTC_OBJC_TYPE macro (#174)
Specifying the `rtc_objc_prefix` flag fails the build for these symbols since the macro wasn't applied to them.
1 parent ed96590 commit 0df968e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/objc/api/peerconnection/RTCAudioDeviceModule.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ - (BOOL)setDevicesUpdatedHandler: (nullable RTCOnAudioDevicesDidUpdate) handler
261261
_native->PlayoutDeviceName(i, name, guid);
262262
NSString *strGUID = [[NSString alloc] initWithCString:guid encoding:NSUTF8StringEncoding];
263263
NSString *strName = [[NSString alloc] initWithCString:name encoding:NSUTF8StringEncoding];
264-
RTC_OBJC_TYPE(RTCIODevice) *device = [[RTC_OBJC_TYPE(RTCIODevice) alloc] initWithType:RTCIODeviceTypeOutput deviceId:strGUID name:strName];
264+
RTC_OBJC_TYPE(RTCIODevice) *device = [[RTC_OBJC_TYPE(RTCIODevice) alloc] initWithType:RTC_OBJC_TYPE(RTCIODeviceTypeOutput) deviceId:strGUID name:strName];
265265
[result addObject: device];
266266
}
267267
}
@@ -283,7 +283,7 @@ - (BOOL)setDevicesUpdatedHandler: (nullable RTCOnAudioDevicesDidUpdate) handler
283283
_native->RecordingDeviceName(i, name, guid);
284284
NSString *strGUID = [[NSString alloc] initWithCString:guid encoding:NSUTF8StringEncoding];
285285
NSString *strName = [[NSString alloc] initWithCString:name encoding:NSUTF8StringEncoding];
286-
RTC_OBJC_TYPE(RTCIODevice) *device = [[RTC_OBJC_TYPE(RTCIODevice) alloc] initWithType:RTCIODeviceTypeInput deviceId:strGUID name:strName];
286+
RTC_OBJC_TYPE(RTCIODevice) *device = [[RTC_OBJC_TYPE(RTCIODevice) alloc] initWithType:RTC_OBJC_TYPE(RTCIODeviceTypeInput) deviceId:strGUID name:strName];
287287
[result addObject: device];
288288
}
289289
}

0 commit comments

Comments
 (0)