debug: add logging for project save/load operations
This commit is contained in:
@@ -886,6 +886,18 @@ export function AudioEditor() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const audioContext = getAudioContext();
|
const audioContext = getAudioContext();
|
||||||
|
|
||||||
|
console.log('[Project Save] Saving project:', {
|
||||||
|
id: currentProjectId,
|
||||||
|
name: currentProjectName,
|
||||||
|
trackCount: tracks.length,
|
||||||
|
tracks: tracks.map(t => ({
|
||||||
|
name: t.name,
|
||||||
|
effectsCount: t.effectChain?.effects?.length || 0,
|
||||||
|
automationLanes: t.automation?.lanes?.length || 0,
|
||||||
|
}))
|
||||||
|
});
|
||||||
|
|
||||||
const projectId = await saveCurrentProject(
|
const projectId = await saveCurrentProject(
|
||||||
currentProjectId,
|
currentProjectId,
|
||||||
currentProjectName,
|
currentProjectName,
|
||||||
@@ -956,6 +968,18 @@ export function AudioEditor() {
|
|||||||
throw new Error('Project not found');
|
throw new Error('Project not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('[Project Load] Loading project:', {
|
||||||
|
id: projectData.metadata.id,
|
||||||
|
name: projectData.metadata.name,
|
||||||
|
trackCount: projectData.tracks.length,
|
||||||
|
tracks: projectData.tracks.map(t => ({
|
||||||
|
name: t.name,
|
||||||
|
hasAudioBuffer: !!t.audioBuffer,
|
||||||
|
effectsCount: t.effectChain?.effects?.length || 0,
|
||||||
|
automationLanes: t.automation?.lanes?.length || 0,
|
||||||
|
}))
|
||||||
|
});
|
||||||
|
|
||||||
// Load tracks with all their properties restored
|
// Load tracks with all their properties restored
|
||||||
loadTracks(projectData.tracks);
|
loadTracks(projectData.tracks);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user