mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
- add missing audio formats to message AudioFile
- ensure that unknown formats gets mapped to DEFAULT_FORMAT
This commit is contained in:
parent
1c148ad124
commit
ce03deb6ca
2 changed files with 10 additions and 1 deletions
|
@ -18,6 +18,10 @@ message AudioFile {
|
|||
MP3_160_ENC = 7;
|
||||
AAC_24 = 8;
|
||||
AAC_48 = 9;
|
||||
AAC_160 = 10;
|
||||
AAC_320 = 11;
|
||||
MP4_128 = 12;
|
||||
OTHER5 = 13;
|
||||
FLAC_FLAC = 16;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -288,7 +288,7 @@ message ExternalId {
|
|||
message AudioFile {
|
||||
optional bytes file_id = 1;
|
||||
|
||||
optional Format format = 2;
|
||||
optional Format format = 2 [default = UNKNOWN_FORMAT];
|
||||
enum Format {
|
||||
OGG_VORBIS_96 = 0;
|
||||
OGG_VORBIS_160 = 1;
|
||||
|
@ -300,7 +300,12 @@ message AudioFile {
|
|||
MP3_160_ENC = 7;
|
||||
AAC_24 = 8;
|
||||
AAC_48 = 9;
|
||||
AAC_160 = 10;
|
||||
AAC_320 = 11;
|
||||
MP4_128 = 12;
|
||||
OTHER5 = 13;
|
||||
FLAC_FLAC = 16;
|
||||
UNKNOWN_FORMAT = 255;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue