Skip to content

Commit

Permalink
fix(octra): setting silence using "A" key not working
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoemp committed Sep 24, 2023
1 parent 20306be commit 19573a2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2640,6 +2640,8 @@ export class AudioViewerComponent implements OnInit, OnChanges, OnDestroy {
timestamp: shortcutInfo.timestamp,
});
}
this.av.changeSegment(xSamples, segment);
this.redraw();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1128,4 +1128,20 @@ export class AudioViewerService {
});
this.annotationChange.emit(result);
}

public changeSegment(start: SampleUnit, segment: OctraAnnotationSegment) {
const result = this.annotation!.changeCurrentSegmentBySamplePosition(
start,
segment
);
this.currentLevelChange.emit({
type: 'change',
items: [
{
instance: segment,
},
],
});
this.annotationChange.emit(result);
}
}

0 comments on commit 19573a2

Please sign in to comment.