Skip to content

Commit

Permalink
output function not string
Browse files Browse the repository at this point in the history
  • Loading branch information
naomiaro committed Feb 26, 2022
1 parent a3967d8 commit eb7e1f3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/waveform-playlist/js/waveform-playlist.js

Large diffs are not rendered by default.

17 changes: 8 additions & 9 deletions src/Playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,14 +379,13 @@ export default class {
this.ac,
this.ee
);
return loader.load()
.then((audioBuffer) => {
if (audioBuffer.sampleRate === this.sampleRate) {
return audioBuffer;
} else {
return resampleAudioBuffer(audioBuffer, this.sampleRate);
}
});
return loader.load().then((audioBuffer) => {
if (audioBuffer.sampleRate === this.sampleRate) {
return audioBuffer;
} else {
return resampleAudioBuffer(audioBuffer, this.sampleRate);
}
});
});

return Promise.all(loadPromises)
Expand Down Expand Up @@ -1069,7 +1068,7 @@ export default class {

return {
tracks,
effects: this.effectsGraph ? this.effectsGraph.toString() : "",
effects: this.effectsGraph,
};
}
}
2 changes: 1 addition & 1 deletion src/Track.js
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ export default class {
cueout: this.cueOut,
stereoPan: this.stereoPan,
gain: this.gain,
effects: this.effectsGraph ? this.effectsGraph.toString() : "",
effects: this.effectsGraph,
};

if (this.fadeIn) {
Expand Down

0 comments on commit eb7e1f3

Please sign in to comment.