Compare commits

...

2 Commits

Author SHA1 Message Date
Filipi Fuchter
e91fb6bb29 Merge branch 'main' into fixing_sound_mixer_small_webrtc
# Conflicts:
#	CHANGELOG.md
2025-05-05 17:43:47 -03:00
Filipi Fuchter
d75815ba48 Fixed an audio mixer issue when used alongside SmallWebRTCTransport. 2025-05-05 17:39:18 -03:00
2 changed files with 7 additions and 1 deletions

View File

@@ -13,6 +13,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Refactored how the `start` method is handled in `SmallWebRTCOutputTransport` by
initializing it before the parent class. This fixes an audio mixer issue when used
alongside `SmallWebRTCTransport`, preventing unnecessary CPU usage and avoiding the
output being flooded with silent frames when no new audio is available.
- Remove custom audio tracks from `DailyTransport` before leaving.
## [0.0.66] - 2025-05-02

View File

@@ -484,9 +484,10 @@ class SmallWebRTCOutputTransport(BaseOutputTransport):
self._params = params
async def start(self, frame: StartFrame):
await super().start(frame)
await self._client.setup(self._params, frame)
await self._client.connect()
# Parent start.
await super().start(frame)
async def stop(self, frame: EndFrame):
await super().stop(frame)