Commit f511c90
Specify format of buffer we're copying into
Per spec https://w3c.github.io/webcodecs/#dom-audiodatacopytooptions-format if the format is not specified, we are to use the same format as the source.
Which could be interleaved as the format for decoding isn't specified.
Calling copyTo with a planeIndex of 0 with an interleaved buffer will attempt to copy all planes.
So we just set the destination format to be f32-planar.
This allows playback to start on browsers that aren't Blink based (Firefox, Safari)1 parent 47e3955 commit f511c90
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
0 commit comments