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

Unified Diff: services/media/audio/platform/generic/mixers/no_op.h

Issue 1424933002: Add an initial revision of an audio server. (Closed) Base URL: https://github.com/domokit/mojo.git@change4
Patch Set: refactor MixerKernel into a class to prepare for the addition of a linear interpolation sampler Created 5 years, 1 month 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/mixers/no_op.h
diff --git a/services/media/audio/platform/generic/mixers/no_op.h b/services/media/audio/platform/generic/mixers/no_op.h
new file mode 100644
index 0000000000000000000000000000000000000000..03fa901ce9dd118edcde15e5e65e5564a6c3d058
--- /dev/null
+++ b/services/media/audio/platform/generic/mixers/no_op.h
@@ -0,0 +1,32 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_NO_OP_H_
+#define SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_NO_OP_H_
+
+#include "services/media/audio/platform/generic/mixer.h"
+
+namespace mojo {
+namespace media {
+namespace audio {
+namespace mixers {
+
+class NoOp : public Mixer {
+ public:
+ bool Mix(void* dst,
+ uint32_t dst_frames,
+ uint32_t* dst_offset,
+ const void* src,
+ uint32_t frac_src_frames,
+ uint32_t* frac_src_offset,
+ uint32_t frac_step_size,
+ bool accumulate) override;
+};
+
+} // namespace mixers
+} // namespace audio
+} // namespace media
+} // namespace mojo
+
+#endif // SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_NO_OP_H_

Powered by Google App Engine
This is Rietveld 408576698