Skip to content

Conversation

hiroshihorie
Copy link
Member

No description provided.

@hiroshihorie hiroshihorie requested a review from davidliu October 6, 2025 10:12
Comment on lines 73 to 87
if (audioProcessingModule != nil) {
if (audioDevice != nil) {
NSLog(@"Both audioProcessingModule and audioDevice are provided, but only one can be used. Ignoring "
@"audioDevice.");
}
if (audioDevice == nil) {
RCTLogInfo(@"Using audio processing module: %@", NSStringFromClass([audioProcessingModule class]));
_peerConnectionFactory =
[[RTCPeerConnectionFactory alloc] initWithAudioDeviceModuleType:RTCAudioDeviceModuleTypeAudioEngine
bypassVoiceProcessing:NO
encoderFactory:encoderFactory
decoderFactory:decoderFactory
audioProcessingModule:audioProcessingModule];
} else {
RCTLogInfo(@"Using audio device: %@", NSStringFromClass([audioDevice class]));
_peerConnectionFactory = [[RTCPeerConnectionFactory alloc] initWithEncoderFactory:encoderFactory
decoderFactory:decoderFactory
audioDevice:audioDevice];
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logic updated to prefer to use RTCAudioDeviceModuleTypeAudioEngine unless audioDevice is provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant