Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] feat: Try to enable software APM(aec,ns,agc) for rust-core. #439

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

cloudwebrtc
Copy link
Contributor

@cloudwebrtc cloudwebrtc commented Sep 22, 2024

Need to adjust the calling path of (microphone capture) audioframe
Currently it is audio frame -> on_captured_frame -> sinks->OnData -> audio_senders->SendAudioData

Adjust to

audio frame -> on_captured_frame -> audio_device_buffer->SetRecordedBuffer/DeliverRecordedData
-> audio_transport_cb_->RecordedDataIsAvailable -> audio_senders->SendAudioData

and Playback

@@ -163,15 +163,15 @@ AudioTrackSource::InternalSource::InternalSource(

if (buffer_.size() >= samples10ms) {
for (auto sink : sinks_)
sink->OnData(buffer_.data(), sizeof(int16_t), sample_rate_,
sink->OnData(buffer_.data(), sizeof(int16_t) * 8, sample_rate_,
Copy link
Member

Choose a reason for hiding this comment

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

ah blah, thx

Copy link
Member

Choose a reason for hiding this comment

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

funny that it works without it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, assert is only triggered in debug mode.

@cloudwebrtc cloudwebrtc changed the title feat: Try to add AEC3 for rust-core. [WIP] feat: Try to add AEC3 for rust-core. Sep 24, 2024
@cloudwebrtc cloudwebrtc changed the title [WIP] feat: Try to add AEC3 for rust-core. [WIP] feat: Try to enable software APM(aec,ns,agc) for rust-core. Sep 24, 2024
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.

2 participants