feat: add FLAC lossless format support and refactor quality pickers (while staying backward compatible)

- Add `FLAC_FLAC` (16), `FLAC_FLAC_24BIT` (22) format codes (based on librespot-org/librespot#796, librespot-org/librespot#1424)
- Regenerate Metadata_pb2.py with protoc 3.20.1
- Add enums: `SuperAudioFormat.FLAC`, `AudioQuality.LOSSLESS`
- Refactor to generic DRY `FormatOnlyAudioQuality` base class while maintaining existing `VorbisOnlyAudioQuality` as wrapper
- Remove `AAC_24_NORM` (replaced by `FLAC_FLAC` at code 16)
This commit is contained in:
dakba
2025-10-10 20:08:41 -04:00
parent ee2c1107f6
commit e909cfdc76
4 changed files with 142 additions and 3705 deletions

View File

@@ -270,7 +270,8 @@ message AudioFile {
MP3_160_ENC = 7;
AAC_24 = 8;
AAC_48 = 9;
AAC_24_NORM = 16;
FLAC_FLAC = 16;
FLAC_FLAC_24BIT = 22;
}
}