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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/MediaStreamAudioDestinationNode.h

Issue 2839063003: Implement tail processing for AudioNodes (Closed)
Patch Set: Make declaration order consistent Created 3 years, 5 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 /* 1 /*
2 * Copyright (C) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 ~MediaStreamAudioDestinationHandler() override; 44 ~MediaStreamAudioDestinationHandler() override;
45 45
46 MediaStream* Stream() { return stream_.Get(); } 46 MediaStream* Stream() { return stream_.Get(); }
47 47
48 // AudioHandler. 48 // AudioHandler.
49 void Process(size_t frames_to_process) override; 49 void Process(size_t frames_to_process) override;
50 void SetChannelCount(unsigned long, ExceptionState&) override; 50 void SetChannelCount(unsigned long, ExceptionState&) override;
51 51
52 unsigned long MaxChannelCount() const; 52 unsigned long MaxChannelCount() const;
53 53
54 bool RequiresTailProcessing() const override { return false; }
55
54 private: 56 private:
55 MediaStreamAudioDestinationHandler(AudioNode&, size_t number_of_channels); 57 MediaStreamAudioDestinationHandler(AudioNode&, size_t number_of_channels);
56 // As an audio source, we will never propagate silence. 58 // As an audio source, we will never propagate silence.
57 bool PropagatesSilence() const override { return false; } 59 bool PropagatesSilence() const override { return false; }
58 60
59 // This Persistent doesn't make a reference cycle. 61 // This Persistent doesn't make a reference cycle.
60 Persistent<MediaStream> stream_; 62 Persistent<MediaStream> stream_;
61 // Accessed by main thread and during audio thread processing. 63 // Accessed by main thread and during audio thread processing.
62 // 64 //
63 // TODO: try to avoid such access during audio thread processing. 65 // TODO: try to avoid such access during audio thread processing.
(...skipping 21 matching lines...) Expand all
85 87
86 MediaStream* stream() const; 88 MediaStream* stream() const;
87 89
88 private: 90 private:
89 MediaStreamAudioDestinationNode(BaseAudioContext&, size_t number_of_channels); 91 MediaStreamAudioDestinationNode(BaseAudioContext&, size_t number_of_channels);
90 }; 92 };
91 93
92 } // namespace blink 94 } // namespace blink
93 95
94 #endif // MediaStreamAudioDestinationNode_h 96 #endif // MediaStreamAudioDestinationNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698