Commit
feat: Enhance sample selection handling in SequencerTrack component
Commit details
Commit notes
This commit updates the handleSampleSelect function to improve track loading management when a new sample is selected. It now stores the old track ID for cleanup purposes and ensures that audio data from the previous track is cleared if necessary. Additionally, the updateTrackSample function is modified to return the old track, allowing for better audio data management during transitions. These changes enhance the overall functionality and user experience of the sequencer.
- Files changed
- 2
- Lines added
- +25
- Lines removed
- −9