forked from external-repos/noisedash
Fix preview sample loop points bug
This commit is contained in:
@@ -852,6 +852,7 @@
|
||||
v-model="previewSampleLoopPointsEnabled"
|
||||
:disabled="previewSamplePlaying"
|
||||
label="Use Loop Points"
|
||||
@change="updatePreviewSampleLoopPoints"
|
||||
/>
|
||||
</v-row>
|
||||
|
||||
|
||||
@@ -652,6 +652,13 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
updatePreviewSampleLoopPoints () {
|
||||
if (this.previewSampleLoopPointsEnabled) {
|
||||
this.samplePreviewPlayer.setLoopPoints(this.previewSampleLoopStart, this.previewSampleLoopEnd)
|
||||
} else {
|
||||
this.samplePreviewPlayer.setLoopPoints(0, this.samplePreviewPlayer.buffer.duration)
|
||||
}
|
||||
},
|
||||
previewSample () {
|
||||
if (this.previewSamplePlaying) {
|
||||
this.previewSamplePlaying = false
|
||||
|
||||
Reference in New Issue
Block a user