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

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

Issue 10831246: Speex encoding/decoding. (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.
17 optional bytes data = 2; 17 optional bytes data = 2;
18 18
19 enum Encoding { 19 enum Encoding {
20 ENCODING_INVALID = -1; 20 ENCODING_INVALID = -1;
21 ENCODING_RAW = 0; // Uncompressed encoding 21 ENCODING_RAW = 0; // Uncompressed encoding
22 ENCODING_OGG = 1; 22 ENCODING_SPEEX = 1;
Sergey Ulanov 2012/08/10 20:41:37 Please keep OGG and rename it to ENCODING_VORBIS
kxing 2012/08/13 21:39:45 Done.
23 } 23 }
24 24
25 optional Encoding encoding = 3 [default = ENCODING_INVALID]; 25 optional Encoding encoding = 3 [default = ENCODING_INVALID];
26 26
27 enum SamplingRate { 27 enum SamplingRate {
28 SAMPLING_RATE_INVALID = -1; 28 SAMPLING_RATE_INVALID = -1;
29 SAMPLING_RATE_44100 = 44100; 29 SAMPLING_RATE_44100 = 44100;
30 SAMPLING_RATE_48000 = 48000; 30 SAMPLING_RATE_48000 = 48000;
31 } 31 }
32 32
33 optional SamplingRate sampling_rate = 4 [default = SAMPLING_RATE_INVALID]; 33 optional SamplingRate sampling_rate = 4 [default = SAMPLING_RATE_INVALID];
34 34
35 enum BytesPerSample { 35 enum BytesPerSample {
36 BYTES_PER_SAMPLE_INVALID = -1; 36 BYTES_PER_SAMPLE_INVALID = -1;
37 BYTES_PER_SAMPLE_2 = 2; 37 BYTES_PER_SAMPLE_2 = 2;
38 } 38 }
39 39
40 optional BytesPerSample bytes_per_sample = 5 40 optional BytesPerSample bytes_per_sample = 5
41 [default = BYTES_PER_SAMPLE_INVALID]; 41 [default = BYTES_PER_SAMPLE_INVALID];
42 42
43 enum Channels { 43 enum Channels {
44 CHANNELS_INVALID = -1; 44 CHANNELS_INVALID = -1;
45 CHANNELS_MONO = 1; 45 CHANNELS_MONO = 1;
46 CHANNELS_STEREO = 2; 46 CHANNELS_STEREO = 2;
47 } 47 }
48 48
49 optional Channels channels = 6 [default = CHANNELS_INVALID]; 49 optional Channels channels = 6 [default = CHANNELS_INVALID];
50 } 50 }
51 51
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698