Commit 99d00a6
committed
AudioResampler: initialize frame_.samples_per_channel_
This change is needed for the same reason as
b776e64 (livekit#722):
A change in the resampler API introduced in libwebrtc m137 caused
the output frame's samples_per_channel_ property to remain
uninitialized. As a result, the length of the output slice was
always calculated as zero, resulting in NativeAudioStream yielding
audio frames without any sample data.1 parent 28f4eb6 commit 99d00a6
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | | - | |
| 52 | + | |
0 commit comments