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

Unified Diff: services/media/framework/lpcm_util.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/media/framework/lpcm_util.h ('k') | services/media/framework/parts/lpcm_reformatter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/framework/lpcm_util.cc
diff --git a/services/media/framework/lpcm_util.cc b/services/media/framework/lpcm_util.cc
index bc94ce271f32e5c71c95ab0f1389e0b401a6bf3f..23e88dfc0753a9f530777bd796d49efdda063b47 100644
--- a/services/media/framework/lpcm_util.cc
+++ b/services/media/framework/lpcm_util.cc
@@ -27,27 +27,26 @@ class LpcmUtilImpl : public LpcmUtil {
size_t frame_count) const override;
private:
- LpcmUtilImpl(const LpcmStreamType& stream_type);
+ LpcmUtilImpl(const AudioStreamType& stream_type);
- LpcmStreamType stream_type_;
+ AudioStreamType stream_type_;
friend class LpcmUtil;
};
-std::unique_ptr<LpcmUtil> LpcmUtil::Create(const LpcmStreamType& stream_type) {
+std::unique_ptr<LpcmUtil> LpcmUtil::Create(const AudioStreamType& stream_type) {
LpcmUtil* result;
switch (stream_type.sample_format()) {
- case LpcmStreamType::SampleFormat::kUnsigned8:
- case LpcmStreamType::SampleFormat::kAny:
+ case AudioStreamType::SampleFormat::kUnsigned8:
result = new LpcmUtilImpl<uint8_t>(stream_type);
break;
- case LpcmStreamType::SampleFormat::kSigned16:
+ case AudioStreamType::SampleFormat::kSigned16:
result = new LpcmUtilImpl<int16_t>(stream_type);
break;
- case LpcmStreamType::SampleFormat::kSigned24In32:
+ case AudioStreamType::SampleFormat::kSigned24In32:
result = new LpcmUtilImpl<int32_t>(stream_type);
break;
- case LpcmStreamType::SampleFormat::kFloat:
+ case AudioStreamType::SampleFormat::kFloat:
result = new LpcmUtilImpl<float>(stream_type);
break;
default:
@@ -61,7 +60,7 @@ std::unique_ptr<LpcmUtil> LpcmUtil::Create(const LpcmStreamType& stream_type) {
}
template <typename T>
-LpcmUtilImpl<T>::LpcmUtilImpl(const LpcmStreamType& stream_type)
+LpcmUtilImpl<T>::LpcmUtilImpl(const AudioStreamType& stream_type)
: stream_type_(stream_type) {}
template <typename T>
« no previous file with comments | « services/media/framework/lpcm_util.h ('k') | services/media/framework/parts/lpcm_reformatter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698