(format: AudioSampleFormat)
| 365 | }; |
| 366 | |
| 367 | const formatIsPlanar = (format: AudioSampleFormat): boolean => { |
| 368 | switch (format) { |
| 369 | case 'u8-planar': |
| 370 | case 's16-planar': |
| 371 | case 's32-planar': |
| 372 | case 'f32-planar': |
| 373 | return true; |
| 374 | default: |
| 375 | return false; |
| 376 | } |
| 377 | }; |
| 378 | |
| 379 | const getReadFunction = (format: AudioSampleFormat): (view: DataView, offset: number) => number => { |
| 380 | switch (format) { |
no outgoing calls
no test coverage detected