Skip to content

Commit 64a9090

Browse files
committed
CSDK-2834 fix custom audio tracks with silence
1 parent 6a3fa39 commit 64a9090

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to the **daily-python** SDK will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Fixed
11+
12+
- Fixed an issue where custom audio tracks won't send silence from the very
13+
beginning. This is necessary to avoid issues with browsers that expect RTP
14+
packets form the very beginning.
15+
816
## [0.19.8] - 2025-08-27
917

1018
### Fixed

src/media/custom_audio_source.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ impl PyCustomAudioSource {
4444
impl PyCustomAudioSource {
4545
#[new]
4646
pub fn new(sample_rate: u32, channels: u8) -> Self {
47-
let audio_source_ptr = unsafe { daily_core_context_create_custom_audio_source() };
47+
let audio_source_ptr = unsafe {
48+
daily_core_context_create_custom_audio_source_with_silence(
49+
sample_rate as i32,
50+
channels as usize,
51+
)
52+
};
4853

4954
let audio_source = NativeDailyAudioSource::from(audio_source_ptr);
5055

0 commit comments

Comments
 (0)