mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix stream call audio when using shared audio context
This commit is contained in:
parent
f0d2f4d225
commit
5546558197
@ -474,7 +474,7 @@ public:
|
||||
_mutex.Lock();
|
||||
if (!_audioTransports.empty()) {
|
||||
for (size_t i = 0; i < _audioTransports.size(); i++) {
|
||||
_audioTransports[_audioTransports.size() - 1]->RecordedDataIsAvailable(
|
||||
_audioTransports[i]->RecordedDataIsAvailable(
|
||||
audioSamples,
|
||||
nSamples,
|
||||
nBytesPerSample,
|
||||
@ -673,6 +673,11 @@ public:
|
||||
}
|
||||
|
||||
virtual ~WrappedChildAudioDeviceModule() {
|
||||
if (_audioCallback) {
|
||||
auto previousAudioCallback = _audioCallback;
|
||||
_audioCallback = nullptr;
|
||||
((WrappedAudioDeviceModuleIOS *)WrappedInstance().get())->UpdateAudioCallback(previousAudioCallback, nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
virtual int32_t RegisterAudioCallback(webrtc::AudioTransport *audioCallback) override {
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 4d122958a6bd8aa94437cf26750442b88cc0f5c0
|
||||
Subproject commit bc8334224dbefb4591d669f7569d16f69134c5b6
|
Loading…
x
Reference in New Issue
Block a user