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

Unified Diff: services/media/audio/platform/generic/output_formatter.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 side-by-side diff with in-line comments
Download patch
Index: services/media/audio/platform/generic/output_formatter.h
diff --git a/services/media/audio/platform/generic/output_formatter.h b/services/media/audio/platform/generic/output_formatter.h
index 940c834a0fcfc824f47b8d66bd71136349dcaf78..a684df46b30ec3c7fdd6754ba074d59d4bdee53a 100644
--- a/services/media/audio/platform/generic/output_formatter.h
+++ b/services/media/audio/platform/generic/output_formatter.h
@@ -19,7 +19,7 @@ using OutputFormatterPtr = std::unique_ptr<OutputFormatter>;
class OutputFormatter {
public:
static OutputFormatterPtr Select(
- const LpcmMediaTypeDetailsPtr& output_format);
+ const AudioMediaTypeDetailsPtr& output_format);
~OutputFormatter();
@@ -53,17 +53,17 @@ class OutputFormatter {
*/
virtual void FillWithSilence(void* dest, uint32_t frames) const = 0;
- const LpcmMediaTypeDetailsPtr& format() const { return format_; }
+ const AudioMediaTypeDetailsPtr& format() const { return format_; }
uint32_t channels() const { return channels_; }
uint32_t bytes_per_sample() const { return bytes_per_sample_; }
uint32_t bytes_per_frame() const { return bytes_per_frame_; }
protected:
- OutputFormatter(const LpcmMediaTypeDetailsPtr& output_format,
+ OutputFormatter(const AudioMediaTypeDetailsPtr& output_format,
uint32_t bytes_per_sample,
uint32_t channels);
- LpcmMediaTypeDetailsPtr format_;
+ AudioMediaTypeDetailsPtr format_;
uint32_t channels_ = 0;
uint32_t bytes_per_sample_ = 0;
uint32_t bytes_per_frame_ = 0;

Powered by Google App Engine
This is Rietveld 408576698