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

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

Issue 1471813002: Mix to an intermediate buffer. (Closed) Base URL: https://github.com/domokit/mojo.git@change7
Patch Set: Final rebase before landing Created 4 years, 10 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_MIXERS_NO_OP_H_ 5 #ifndef SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_NO_OP_H_
6 #define SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_NO_OP_H_ 6 #define SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_NO_OP_H_
7 7
8 #include "services/media/audio/platform/generic/mixer.h" 8 #include "services/media/audio/platform/generic/mixer.h"
9 9
10 namespace mojo { 10 namespace mojo {
11 namespace media { 11 namespace media {
12 namespace audio { 12 namespace audio {
13 namespace mixers { 13 namespace mixers {
14 14
15 class NoOp : public Mixer { 15 class NoOp : public Mixer {
16 public: 16 public:
17 NoOp() : Mixer(0, 0) {} 17 NoOp() : Mixer(0, 0) {}
18 18
19 bool Mix(void* dst, 19 bool Mix(int32_t* dst,
20 uint32_t dst_frames, 20 uint32_t dst_frames,
21 uint32_t* dst_offset, 21 uint32_t* dst_offset,
22 const void* src, 22 const void* src,
23 uint32_t frac_src_frames, 23 uint32_t frac_src_frames,
24 int32_t* frac_src_offset, 24 int32_t* frac_src_offset,
25 uint32_t frac_step_size, 25 uint32_t frac_step_size,
26 bool accumulate) override; 26 bool accumulate) override;
27 }; 27 };
28 28
29 } // namespace mixers 29 } // namespace mixers
30 } // namespace audio 30 } // namespace audio
31 } // namespace media 31 } // namespace media
32 } // namespace mojo 32 } // namespace mojo
33 33
34 #endif // SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_NO_OP_H_ 34 #endif // SERVICES_MEDIA_AUDIO_PLATFORM_GENERIC_MIXERS_NO_OP_H_
OLDNEW
« no previous file with comments | « services/media/audio/platform/generic/mixers/mixer_utils.h ('k') | services/media/audio/platform/generic/mixers/no_op.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698