Skip to main content

AudioSamples

type AudioSamples = 
| number[]
| AudioBufferFloats
| AudioBufferBytes;

Audio samples from each channel, either in float or bytes form

Example

|       |            | Sample Frame 1 | Sample Frame 2 | Sample Frame 3 |
| Input | Channel L: | sample 1 | sample 2 | sample 3 |
| | Channel R: | sample 1 | sample 2 | sample 3 |

We can get 2 AudioSamples from "Channel L" and "Channel R" from "Input"