Fixed two issues: 1. Made audio editor full width by removing max-w-6xl wrapper 2. Fixed insertBufferSegment bug where paste operation had incorrect target buffer indexing causing corrupted audio after paste Changes: - app/page.tsx: Removed max-w-6xl constraint for full-width editor - lib/audio/buffer-utils.ts: Fixed paste buffer copying logic * Corrected target index calculation in "copy after insert point" loop * Was: targetData[insertBuffer.length + i] = sourceData[i] * Now: targetData[insertSample + insertBuffer.length + (i - insertSample)] = sourceData[i] 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
4.2 KiB
4.2 KiB