Commit
Refactor: Improve audio file validation and error reporting
Commit details
Commit notes
This commit enhances the audio file validation process by:
- Expanding WAV magic byte detection to include RF64 and BW64 formats. - Adding error handling for file reading operations in `validateAudioMagicBytes`. - Providing more specific error messages in `validateAudioFile` when magic byte validation fails, including the file header. - Improving error reporting in `PackEditDrawer` to display individual file validation errors. - Adding a check for empty files in `validateAudioFile`.
Co-authored-by: armin.naimi <[email redacted]>
- Files changed
- 2
- Lines added
- +82
- Lines removed
- −33