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

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

Issue 10832418: Removed Vorbis from the audio codecs and replaced it with Opus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resync-ed to top of tree 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
« no previous file with comments | « no previous file | remoting/protocol/content_description.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Packets with raw data must have exactly one data field. 16 // Packets with raw data must have exactly one data field.
17 // For those packets, samples are signed and represented using little endian. 17 // For those packets, samples are signed and represented using little endian.
18 // Some encoders (eg. Speex) may add multiple data fields to separate encoded 18 // Some encoders (eg. Speex) may add multiple data fields to separate encoded
19 // frames. 19 // frames.
20 repeated bytes data = 2; 20 repeated bytes data = 2;
21 21
22 enum Encoding { 22 enum Encoding {
23 ENCODING_INVALID = -1; 23 ENCODING_INVALID = -1;
24 ENCODING_RAW = 0; // Uncompressed encoding 24 ENCODING_RAW = 0; // Uncompressed encoding
25 ENCODING_VORBIS = 1; 25 ENCODING_OPUS = 1;
26 ENCODING_SPEEX = 2; 26 ENCODING_SPEEX = 2;
27 } 27 }
28 28
29 optional Encoding encoding = 3 [default = ENCODING_INVALID]; 29 optional Encoding encoding = 3 [default = ENCODING_INVALID];
30 30
31 enum SamplingRate { 31 enum SamplingRate {
32 SAMPLING_RATE_INVALID = -1; 32 SAMPLING_RATE_INVALID = -1;
33 SAMPLING_RATE_44100 = 44100; 33 SAMPLING_RATE_44100 = 44100;
34 SAMPLING_RATE_48000 = 48000; 34 SAMPLING_RATE_48000 = 48000;
35 } 35 }
(...skipping 10 matching lines...) Expand all
46 46
47 enum Channels { 47 enum Channels {
48 CHANNELS_INVALID = -1; 48 CHANNELS_INVALID = -1;
49 CHANNELS_MONO = 1; 49 CHANNELS_MONO = 1;
50 CHANNELS_STEREO = 2; 50 CHANNELS_STEREO = 2;
51 } 51 }
52 52
53 optional Channels channels = 6 [default = CHANNELS_INVALID]; 53 optional Channels channels = 6 [default = CHANNELS_INVALID];
54 } 54 }
55 55
OLDNEW
« no previous file with comments | « no previous file | remoting/protocol/content_description.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698