Skip to content

Replace string-based audio format handling with AudioFormat enum#5

Merged
dimdasci merged 1 commit into
mainfrom
feature/audio-format-enum
Jun 29, 2025
Merged

Replace string-based audio format handling with AudioFormat enum#5
dimdasci merged 1 commit into
mainfrom
feature/audio-format-enum

Conversation

@dimdasci

Copy link
Copy Markdown
Owner
  • Created AudioFormat enum in formats.py with MP3, WAV, FLAC, AAC, OGG, M4A, UNKNOWN
  • Updated utils.get_audio_properties to return AudioFormat
  • Modified core.SoundFile to use AudioFormat throughout
  • Made convert_format/convert require explicit target_format: AudioFormat
  • Updated all code, tests, and documentation to use AudioFormat
  • Added AudioFormat to public API via init.py and all
  • All tests pass and code meets style requirements

- Created AudioFormat enum in formats.py with MP3, WAV, FLAC, AAC, OGG, M4A, UNKNOWN
- Updated utils.get_audio_properties to return AudioFormat
- Modified core.SoundFile to use AudioFormat throughout
- Made convert_format/convert require explicit target_format: AudioFormat
- Updated all code, tests, and documentation to use AudioFormat
- Added AudioFormat to public API via __init__.py and __all__
- All tests pass and code meets style requirements
@dimdasci
dimdasci merged commit eec0938 into main Jun 29, 2025
4 checks passed
@dimdasci
dimdasci deleted the feature/audio-format-enum branch June 29, 2025 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant