aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/AudioBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-09-23 23:22:39 -0400
committerbobzel <zzzman@gmail.com>2021-09-23 23:22:39 -0400
commit9675e948be8a7ea2d86c8ca68a89c09452ece0e7 (patch)
tree410584a994165f09ae4a6bd73a0838e18d362ec2 /src/client/views/nodes/AudioBox.tsx
parentde658e50f58607e6a0bcb2cdaaca28ca81d83b50 (diff)
added code for editing the original waveform, not a clip when trimming is activated.
Diffstat (limited to 'src/client/views/nodes/AudioBox.tsx')
-rw-r--r--src/client/views/nodes/AudioBox.tsx13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/client/views/nodes/AudioBox.tsx b/src/client/views/nodes/AudioBox.tsx
index f6d6ff440..6a25ffaeb 100644
--- a/src/client/views/nodes/AudioBox.tsx
+++ b/src/client/views/nodes/AudioBox.tsx
@@ -577,9 +577,16 @@ export class AudioBox extends ViewBoxAnnotatableComponent<
PanelWidth={this.timelineWidth}
PanelHeight={this.timelineHeight}
rawDuration={this.rawDuration}
- clipStart={this.clipStart}
- clipEnd={this.clipEnd}
- clipDuration={this.duration}
+
+ // this edits the entire waveform when trimming is activated
+ clipStart={this._trimming ? 0 : this.clipStart}
+ clipEnd={this._trimming ? this.rawDuration : this.clipEnd}
+ clipDuration={this._trimming ? this.rawDuration : this.duration}
+ // this edits just the current waveform clip when trimming is activated
+ // clipStart={this.clipStart}
+ // clipEnd={this.clipEnd}
+ // clipDuration={this.duration}
+
trimming={this._trimming}
trimStart={this.trimStartFunc}
trimEnd={this.trimEndFunc}