Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(483)

Side by Side Diff: remoting/proto/audio.proto

Issue 10827324: Changed AudioPacket data to a repeated field. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Protocol for audio messages. 5 // Protocol for audio messages.
6 6
7 syntax = "proto2"; 7 syntax = "proto2";
8 8
9 option optimize_for = LITE_RUNTIME; 9 option optimize_for = LITE_RUNTIME;
10 10
11 package remoting; 11 package remoting;
12 12
13 message AudioPacket { 13 message AudioPacket {
14 optional int32 timestamp = 1 [default = 0]; 14 optional int32 timestamp = 1 [default = 0];
15 15
16 // Data is always signed and represented using little endian. 16 // Data is always signed and represented using little endian.
Sergey Ulanov 2012/08/14 18:50:05 this makes sense only for raw audio packets. Updat
kxing 2012/08/14 20:56:15 Done.
17 optional bytes data = 2; 17 // Raw data will have exactly one data field.
Sergey Ulanov 2012/08/14 18:50:05 s/Raw data will/Packets with raw data must/
kxing 2012/08/14 20:56:15 Done.
18 // For encoded data, each data field represents one frame.
Sergey Ulanov 2012/08/14 18:50:05 It may not be necessary to frame data, depending o
kxing 2012/08/14 20:56:15 Done.
19 repeated bytes data = 2;
18 20
19 enum Encoding { 21 enum Encoding {
20 ENCODING_INVALID = -1; 22 ENCODING_INVALID = -1;
21 ENCODING_RAW = 0; // Uncompressed encoding 23 ENCODING_RAW = 0; // Uncompressed encoding
22 ENCODING_OGG = 1; 24 ENCODING_OGG = 1;
23 } 25 }
24 26
25 optional Encoding encoding = 3 [default = ENCODING_INVALID]; 27 optional Encoding encoding = 3 [default = ENCODING_INVALID];
26 28
27 enum SamplingRate { 29 enum SamplingRate {
(...skipping 14 matching lines...) Expand all
42 44
43 enum Channels { 45 enum Channels {
44 CHANNELS_INVALID = -1; 46 CHANNELS_INVALID = -1;
45 CHANNELS_MONO = 1; 47 CHANNELS_MONO = 1;
46 CHANNELS_STEREO = 2; 48 CHANNELS_STEREO = 2;
47 } 49 }
48 50
49 optional Channels channels = 6 [default = CHANNELS_INVALID]; 51 optional Channels channels = 6 [default = CHANNELS_INVALID];
50 } 52 }
51 53
OLDNEW
« remoting/host/audio_capturer_win.cc ('K') | « remoting/host/audio_capturer_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698