fixed indexdb

This commit is contained in:
Jade (Rose) Rowland 2024-06-01 12:39:45 -04:00
parent 1fd9ba5dbf
commit bf7fe2bf75
2 changed files with 33 additions and 59 deletions

View file

@ -99,7 +99,7 @@ export const connectToDestination = (input, channels = [0, 1]) => {
//This upmix can be removed if correct channel counts are set throughout the app,
// and then strudel could theoretically support surround sound audio files
const stereoMix = new StereoPannerNode(ctx);
input.connect(stereoMix);
input?.connect(stereoMix);
const splitter = new ChannelSplitterNode(ctx, {
numberOfOutputs: stereoMix.channelCount,