Delete deprecated CreateAudioSource method, with constraints.
Bug: webrtc:9239 Change-Id: I5025b7fd103247e0426ceabedc1216a4f0f0ab34 Reviewed-on: https://webrtc-review.googlesource.com/76560 Commit-Queue: Niels Moller <nisse@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23501}
This commit is contained in:
@ -175,8 +175,11 @@
|
||||
if (constraints) {
|
||||
nativeConstraints = constraints.nativeConstraints;
|
||||
}
|
||||
cricket::AudioOptions options;
|
||||
CopyConstraintsIntoAudioOptions(nativeConstraints.get(), &options);
|
||||
|
||||
rtc::scoped_refptr<webrtc::AudioSourceInterface> source =
|
||||
_nativeFactory->CreateAudioSource(nativeConstraints.get());
|
||||
_nativeFactory->CreateAudioSource(options);
|
||||
return [[RTCAudioSource alloc] initWithNativeAudioSource:source];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user