• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1syntax = "proto3";
2
3import "pandora/host.proto";
4import "google/protobuf/empty.proto";
5
6option java_outer_classname = "LeAudioProto";
7
8package pandora;
9
10// Service to trigger LE Audio procedures.
11service LeAudio {
12  rpc Open(OpenRequest) returns (google.protobuf.Empty);
13  // Playback audio
14  rpc LeAudioPlaybackAudio(stream LeAudioPlaybackAudioRequest) returns (LeAudioPlaybackAudioResponse);
15  // Start an opened stream.
16  rpc LeAudioStart(LeAudioStartRequest) returns (google.protobuf.Empty);
17  // Stop an opened stream.
18  rpc LeAudioStop(LeAudioStopRequest) returns (google.protobuf.Empty);
19}
20
21message OpenRequest {
22  Connection connection = 1;
23}
24
25// Request for the `LeAudioStart` method.
26message LeAudioStartRequest {
27  Connection connection = 1;
28}
29
30// Request of the `PlaybackAudio` method.
31message LeAudioPlaybackAudioRequest {
32  // Audio data to playback.
33  bytes data = 1;
34}
35
36// Response of the `LeAudioPlaybackAudio` method.
37message LeAudioPlaybackAudioResponse {}
38
39// Request of the `LeAudioStop` method.
40message LeAudioStopRequest {
41  Connection connection = 1;
42}
43