Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions components/audio/DAW/Multitrack/TakesImportModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ export default function TakesImportModal({ show, onHide, takes = [] }) {
try {
let finalURL = selectedTake.audioURL;

// Web Workers can't resolve relative URLs (no page base URL context).
// Convert to absolute so both the AudioProcessor worker and main-thread
// fallback can fetch the resource.
if (finalURL.startsWith('/')) {
finalURL = `${window.location.origin}${finalURL}`;
}

// For blob URLs, we might need to ensure they're still valid
if (selectedTake.audioURL.startsWith('blob:')) {
console.log('🔄 TakesImportModal: Refreshing blob URL for take');
Expand Down
Loading