22
33//import "Common/Types/CommonTypes.proto";
44import "Common/Types/Resource/ResourceManagementTypes.proto" ;
5+ import "Common/Types/CommonTypes.proto" ;
56
6- package LumosProtobuf ;
7+ package LumosProtobuf.Audio ;
78
8- message AudioMetadataData {
9-
9+ message AudioMetadataDescriptor {
1010 .LumosProtobuf.Resource.ResourceData resourceData = 2 ;
1111
1212 FFTMetadataData fft = 3 ;
@@ -27,36 +27,82 @@ message AudioMetadataData {
2727 Error = 2 ;
2828 }
2929}
30+ message PlayerThreadDescriptor {
31+ string id = 2 ;
32+ string name = 3 ;
33+ int64 currentTime = 4 ;
34+ int64 totalTime = 5 ;
35+ int64 length = 6 ;
36+ int64 position = 7 ;
37+
38+ EPlaybackState playbackState = 8 ;
39+ double volume = 9 ; //0 silence, 1 full
40+ double balance = 10 ; //-1 is full left, 1 is full right
41+
42+ enum EPlaybackState {
43+ Stopped = 0 ;
44+ Playing = 1 ;
45+ Paused = 2 ;
46+ }
47+ }
48+ message GetPlayerThreadsResponse {
49+ string requestId = 2 ;
3050
31- message AllAudioMetadataResponse {
51+ repeated PlayerThreadDescriptor playerThreads = 3 ;
52+ }
53+ message PlayerThreadChangedMessage {
54+
55+ .LumosProtobuf.EChangeType changeType = 3 ;
56+ string playerThreadId = 4 ;
57+ PlayerThreadDescriptor PlayerThreadData = 5 ;
58+
59+ repeated string properties = 6 ;
60+ }
3261
62+ message AllAudioMetadataResponse {
3363 string requestId = 2 ;
3464
35- repeated AudioMetadataData audioMetadata = 3 ;
65+ repeated AudioMetadataDescriptor audioMetadata = 3 ;
66+ }
3667
68+ message SoundOutputInfo {
69+ string guid = 2 ;
70+ string description = 3 ;
71+ string moduleName = 4 ;
3772}
3873
74+ message AllSoundOutputInfosResponse {
75+ string requestId = 2 ;
76+ repeated SoundOutputInfo soundOutputInfos = 3 ;
77+ }
3978
40- message ControlAudioRequest {
4179
80+ message ControlPlayerThreadRequest {
4281 string requestId = 2 ;
82+
83+ string audioFile = 3 ;
84+ string playerThreadId = 4 ;
4385
44- string audioFile = 20 ;
45- EPlayMode playMode = 3 ;
46-
47- double balance = 4 ; //-1 is full left, 1 is full right
48- bool balanceSet = 5 ;
86+ EPlayMode playMode = 8 ;
4987
50- double volume = 6 ; //0 silence , 1 full
51- bool volumeSet = 7 ;
88+ double balance = 11 ; //-1 is full left , 1 is full right
89+ bool balanceSet = 12 ;
5290
53- enum EPlayMode {
91+ double volume = 13 ; //0 silence, 1 full
92+ bool volumeSet = 14 ;
5493
94+ int64 time = 15 ;
95+ bool timeSet = 16 ;
96+
97+ SoundOutputInfo soundOutputInfo = 17 ;
98+ bool soundOutputInfoSet = 18 ;
99+
100+ enum EPlayMode {
55101 None = 0 ;
56102 Play = 1 ;
57103 Stop = 2 ;
58104 Pause = 3 ;
59-
105+ Buffer = 4 ;
60106 }
61107}
62108
0 commit comments