Skip to content

Commit

Permalink
Update audio_track.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom committed Aug 30, 2024
1 parent 2e1616e commit 5e8101e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webrtc-sys/src/audio_track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ NativeAudioSink::NativeAudioSink(rust::Box<AudioSinkWrapper> observer,
int num_channels)
: observer_(std::move(observer)),
sample_rate_(sample_rate),
num_channels_(num_channels) {}
num_channels_(num_channels) {
frame_.sample_rate_hz_ = sample_rate;
frame_.num_channels_ = num_channels;
}

void NativeAudioSink::OnData(const void* audio_data,
int bits_per_sample,
Expand Down

0 comments on commit 5e8101e

Please sign in to comment.