We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6414985 commit 2df0c80Copy full SHA for 2df0c80
src/containers/sound-editor.jsx
@@ -272,8 +272,8 @@ class SoundEditor extends React.Component {
272
const startIndex = this.state.trimStart === null ?
273
0 : Math.floor(this.state.trimStart * numChunks);
274
const endIndex = this.state.trimEnd === null ?
275
- numChunks - 1 : Math.floor(this.state.trimEnd * numChunks);
276
- const trimChunks = this.state.chunkLevels.slice(startIndex, endIndex + 1);
+ numChunks - 1 : Math.ceil(this.state.trimEnd * numChunks);
+ const trimChunks = this.state.chunkLevels.slice(startIndex, endIndex);
277
return Math.max(...trimChunks) > MAX_RMS;
278
}
279
getUndoItem () {
0 commit comments