Files
audio-ui/components/tracks/Track.tsx
Sebastian Krüger d9bd8246c9 fix: prevent infinite loop in waveform rendering
- Add safety check for duration === 0 (first track scenario)
- Ensure trackWidth doesn't exceed canvas width
- Use Math.floor for integer loop iterations
- Prevent division by zero in samplesPerPixel calculation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-20 11:24:31 +01:00

27 KiB