8xFF / atm0s-media-server

Decentralized, Global-Scale Media Server written in Rust (WebRTC/Whip/Whep/Rtmp/Sip)
https://8xff.github.io/media-docs/
MIT License
211 stars 17 forks source link

feat: audio mixer #306

Closed giangndm closed 2 months ago

giangndm commented 2 months ago

Pull Request

Description

This PR implement audio mixer with mix-minus technique in 2 mode

Related Issue

If this pull request is related to any issue, please mention it here.

Checklist

Screenshots

If applicable, add screenshots to help explain the changes made.

Additional Notes

Add any additional notes or context about the pull request here.

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 70.22857% with 521 lines in your changes missing coverage. Please review.

Project coverage is 45.05%. Comparing base (7075878) to head (a90bdc4).

Files Patch % Lines
packages/transport_webrtc/src/transport/webrtc.rs 31.46% 122 Missing :warning:
...ackages/media_core/src/cluster/room/audio_mixer.rs 31.84% 107 Missing :warning:
...ackages/media_core/src/cluster/room/media_track.rs 22.72% 51 Missing :warning:
packages/media_core/src/cluster/room.rs 69.32% 50 Missing :warning:
packages/media_core/src/endpoint/internal.rs 38.98% 36 Missing :warning:
packages/protocol/src/protobuf/features.mixer.rs 0.00% 25 Missing :warning:
.../media_core/src/cluster/room/audio_mixer/manual.rs 85.25% 23 Missing :warning:
packages/media_runner/src/worker.rs 0.00% 17 Missing :warning:
...es/media_core/src/endpoint/internal/local_track.rs 0.00% 16 Missing :warning:
...dia_core/src/cluster/room/audio_mixer/publisher.rs 92.05% 12 Missing :warning:
... and 14 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #306 +/- ## ========================================== + Coverage 41.66% 45.05% +3.39% ========================================== Files 86 95 +9 Lines 9151 10360 +1209 ========================================== + Hits 3813 4668 +855 - Misses 5338 5692 +354 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.