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

Side by Side Diff: content/common/media/audio_param_traits.cc

Issue 9965076: Revert 130180 - Move media/audio files into media namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | « content/common/media/audio_param_traits.h ('k') | content/renderer/media/audio_device.h » ('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 #include "content/common/media/audio_param_traits.h" 5 #include "content/common/media/audio_param_traits.h"
6 6
7 #include "base/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "media/audio/audio_parameters.h" 8 #include "media/audio/audio_parameters.h"
9 9
10 using media::AudioParameters;
11
12 namespace IPC { 10 namespace IPC {
13 11
14 void ParamTraits<AudioParameters>::Write(Message* m, 12 void ParamTraits<AudioParameters>::Write(Message* m,
15 const AudioParameters& p) { 13 const AudioParameters& p) {
16 m->WriteInt(static_cast<int>(p.format())); 14 m->WriteInt(static_cast<int>(p.format()));
17 m->WriteInt(static_cast<int>(p.channel_layout())); 15 m->WriteInt(static_cast<int>(p.channel_layout()));
18 m->WriteInt(p.sample_rate()); 16 m->WriteInt(p.sample_rate());
19 m->WriteInt(p.bits_per_sample()); 17 m->WriteInt(p.bits_per_sample());
20 m->WriteInt(p.frames_per_buffer()); 18 m->WriteInt(p.frames_per_buffer());
21 m->WriteInt(p.channels()); 19 m->WriteInt(p.channels());
(...skipping 17 matching lines...) Expand all
39 sample_rate, bits_per_sample, frames_per_buffer); 37 sample_rate, bits_per_sample, frames_per_buffer);
40 return true; 38 return true;
41 } 39 }
42 40
43 void ParamTraits<AudioParameters>::Log(const AudioParameters& p, 41 void ParamTraits<AudioParameters>::Log(const AudioParameters& p,
44 std::string* l) { 42 std::string* l) {
45 l->append(base::StringPrintf("<AudioParameters>")); 43 l->append(base::StringPrintf("<AudioParameters>"));
46 } 44 }
47 45
48 } 46 }
OLDNEW
« no previous file with comments | « content/common/media/audio_param_traits.h ('k') | content/renderer/media/audio_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698