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

Side by Side Diff: services/media/audio/platform/generic/mixer.h

Issue 1902183002: Motown: Change media type (stream type) representation (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Changes per review feedback. Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXER_H_ 5 #ifndef SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXER_H_
6 #define SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXER_H_ 6 #define SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "mojo/services/media/common/interfaces/media_types.mojom.h" 10 #include "mojo/services/media/common/interfaces/media_types.mojom.h"
(...skipping 17 matching lines...) Expand all
28 28
29 // Select 29 // Select
30 // 30 //
31 // Select an appropriate instance of a mixer based on the properties of the 31 // Select an appropriate instance of a mixer based on the properties of the
32 // source and destination formats. 32 // source and destination formats.
33 // 33 //
34 // TODO(johngro): Come back here and add a way to indicate user preference 34 // TODO(johngro): Come back here and add a way to indicate user preference
35 // where appropriate. For example, where we might chose a linear 35 // where appropriate. For example, where we might chose a linear
36 // interpolation sampler, the user may actually prefer cubic interpolation, or 36 // interpolation sampler, the user may actually prefer cubic interpolation, or
37 // perhaps just a point sampler. 37 // perhaps just a point sampler.
38 static MixerPtr Select(const LpcmMediaTypeDetailsPtr& src_format, 38 static MixerPtr Select(const AudioMediaTypeDetailsPtr& src_format,
39 const LpcmMediaTypeDetailsPtr* dst_format); 39 const AudioMediaTypeDetailsPtr* dst_format);
40 40
41 // Mix 41 // Mix
42 // 42 //
43 // Perform a mixing operation from the source buffer into the destination 43 // Perform a mixing operation from the source buffer into the destination
44 // buffer. 44 // buffer.
45 // 45 //
46 // @param dst 46 // @param dst
47 // The pointer to the destination buffer into which frames will be mixed. 47 // The pointer to the destination buffer into which frames will be mixed.
48 // 48 //
49 // @param dst_frames 49 // @param dst_frames
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 private: 132 private:
133 uint32_t pos_filter_width_; 133 uint32_t pos_filter_width_;
134 uint32_t neg_filter_width_; 134 uint32_t neg_filter_width_;
135 }; 135 };
136 136
137 } // namespace audio 137 } // namespace audio
138 } // namespace media 138 } // namespace media
139 } // namespace mojo 139 } // namespace mojo
140 140
141 #endif // SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXER_H_ 141 #endif // SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXER_H_
OLDNEW
« no previous file with comments | « services/media/audio/audio_track_impl.cc ('k') | services/media/audio/platform/generic/mixer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698