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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.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) 2011, Google Inc. All rights reserved. 2 * Copyright (C) 2011, 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 double TailTime() const override { return 0; } 55 double TailTime() const override { return 0; }
56 double LatencyTime() const override { return 0; } 56 double LatencyTime() const override { return 0; }
57 57
58 // Helpers for AudioSourceProviderClient implementation of 58 // Helpers for AudioSourceProviderClient implementation of
59 // MediaElementAudioSourceNode. 59 // MediaElementAudioSourceNode.
60 void SetFormat(size_t number_of_channels, float sample_rate); 60 void SetFormat(size_t number_of_channels, float sample_rate);
61 void OnCurrentSrcChanged(const KURL& current_src); 61 void OnCurrentSrcChanged(const KURL& current_src);
62 void lock(); 62 void lock();
63 void unlock(); 63 void unlock();
64 64
65 bool RequiresTailProcessing() const override { return false; }
66
65 private: 67 private:
66 MediaElementAudioSourceHandler(AudioNode&, HTMLMediaElement&); 68 MediaElementAudioSourceHandler(AudioNode&, HTMLMediaElement&);
67 // As an audio source, we will never propagate silence. 69 // As an audio source, we will never propagate silence.
68 bool PropagatesSilence() const override { return false; } 70 bool PropagatesSilence() const override { return false; }
69 71
70 // Must be called only on the audio thread. 72 // Must be called only on the audio thread.
71 bool PassesCORSAccessCheck(); 73 bool PassesCORSAccessCheck();
72 74
73 // Must be called only on the main thread. 75 // Must be called only on the main thread.
74 bool PassesCurrentSrcCORSAccessCheck(const KURL& current_src); 76 bool PassesCurrentSrcCORSAccessCheck(const KURL& current_src);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void lock() override; 135 void lock() override;
134 void unlock() override; 136 void unlock() override;
135 137
136 private: 138 private:
137 MediaElementAudioSourceNode(BaseAudioContext&, HTMLMediaElement&); 139 MediaElementAudioSourceNode(BaseAudioContext&, HTMLMediaElement&);
138 }; 140 };
139 141
140 } // namespace blink 142 } // namespace blink
141 143
142 #endif // MediaElementAudioSourceNode_h 144 #endif // MediaElementAudioSourceNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698