1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-29 01:29:55 +01:00
strawberry-audio-player-win.../ext/libstrawberry-tagreader/tagreadermessages.proto

131 lines
2.7 KiB
Protocol Buffer
Raw Normal View History

2018-03-31 16:24:28 +02:00
syntax = "proto2";
2021-02-20 17:06:55 +01:00
package spb.tagreader;
2018-02-27 18:06:05 +01:00
message SongMetadata {
2018-09-08 12:38:02 +02:00
enum FileType {
2018-02-27 18:06:05 +01:00
UNKNOWN = 0;
2018-05-01 13:34:32 +02:00
WAV = 1;
2018-02-27 18:06:05 +01:00
FLAC = 2;
2018-05-01 13:34:32 +02:00
WAVPACK = 3;
OGGFLAC = 4;
OGGVORBIS = 5;
OGGOPUS = 6;
2018-02-27 18:06:05 +01:00
OGGSPEEX = 7;
2018-05-01 13:34:32 +02:00
MPEG = 8;
MP4 = 9;
ASF = 10;
AIFF = 11;
MPC = 12;
TRUEAUDIO = 13;
2018-09-02 01:40:14 +02:00
DSF = 14;
DSDIFF = 15;
2018-10-23 20:21:01 +02:00
PCM = 16;
2019-01-06 00:32:58 +01:00
APE = 17;
2018-05-01 13:34:32 +02:00
CDDA = 90;
STREAM = 91;
2018-02-27 18:06:05 +01:00
}
optional bool valid = 1;
2018-02-27 18:06:05 +01:00
optional string title = 2;
optional string album = 3;
optional string artist = 4;
optional string albumartist = 5;
optional int32 track = 6;
optional int32 disc = 7;
optional int32 year = 8;
optional int32 originalyear = 9;
optional string genre = 10;
optional bool compilation = 11;
optional string composer = 12;
optional string performer = 13;
optional string grouping = 14;
optional string comment = 15;
optional string lyrics = 16;
optional uint64 length_nanosec = 17;
optional int32 bitrate = 18;
optional int32 samplerate = 19;
optional int32 bitdepth = 20;
2018-02-27 18:06:05 +01:00
optional string url = 21;
optional string basefilename = 22;
2018-09-08 12:38:02 +02:00
optional FileType filetype = 23;
optional int32 filesize = 24;
2020-08-13 21:09:06 +02:00
optional int64 mtime = 25;
optional int64 ctime = 26;
2018-02-27 18:06:05 +01:00
optional int32 playcount = 27;
optional int32 skipcount = 28;
optional int32 lastplayed = 29;
2018-02-27 18:06:05 +01:00
optional bool suspicious_tags = 30;
optional string art_automatic = 31;
2018-02-27 18:06:05 +01:00
}
message ReadFileRequest {
optional string filename = 1;
}
message ReadFileResponse {
optional SongMetadata metadata = 1;
}
message SaveFileRequest {
optional string filename = 1;
optional SongMetadata metadata = 2;
}
message SaveFileResponse {
optional bool success = 1;
}
message IsMediaFileRequest {
optional string filename = 1;
}
message IsMediaFileResponse {
optional bool success = 1;
}
message LoadEmbeddedArtRequest {
optional string filename = 1;
}
message LoadEmbeddedArtResponse {
optional bytes data = 1;
}
message SaveEmbeddedArtRequest {
optional string filename = 1;
optional bytes data = 2;
}
message SaveEmbeddedArtResponse {
optional bool success = 1;
}
2018-02-27 18:06:05 +01:00
message Message {
optional int32 id = 1;
2018-02-27 18:06:05 +01:00
optional ReadFileRequest read_file_request = 2;
optional ReadFileResponse read_file_response = 3;
optional SaveFileRequest save_file_request = 4;
optional SaveFileResponse save_file_response = 5;
optional IsMediaFileRequest is_media_file_request = 6;
optional IsMediaFileResponse is_media_file_response = 7;
optional LoadEmbeddedArtRequest load_embedded_art_request = 8;
optional LoadEmbeddedArtResponse load_embedded_art_response = 9;
optional SaveEmbeddedArtRequest save_embedded_art_request = 10;
optional SaveEmbeddedArtResponse save_embedded_art_response = 11;
2018-02-27 18:06:05 +01:00
}