Closed neo closed 8 months ago
No UX problem/resolution described
sorry I thought it was self explanatory enough 😅 I was trying to stream a mono PCM, and it was erroring out because there's only one item from the decoded channelData
array
and I suspect this would also accommodate the case where there are more than two channels from the WAV file
@anthumchris I just updated the PR description to include the problem and solution, thanks!
Problem
It breaks when it tries to stream a wav with only one channel with the following error:
because
channelData
would only have one itemSolution
By using
.map()
to iteration through each channel and obtain the buffer, it can now accommodate for an arbitrary amount of channels other than two.