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

Side by Side Diff: Source/modules/webaudio/AudioBufferSourceNode.h

Issue 14146021: Move deprecation messages to UseCounter::measureDeprecatedFeature. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // The old attribute is kept for backwards compatibility. 72 // The old attribute is kept for backwards compatibility.
73 bool loop() const { return m_isLooping; } 73 bool loop() const { return m_isLooping; }
74 void setLoop(bool looping) { m_isLooping = looping; } 74 void setLoop(bool looping) { m_isLooping = looping; }
75 75
76 // Loop times in seconds. 76 // Loop times in seconds.
77 double loopStart() const { return m_loopStart; } 77 double loopStart() const { return m_loopStart; }
78 double loopEnd() const { return m_loopEnd; } 78 double loopEnd() const { return m_loopEnd; }
79 void setLoopStart(double loopStart) { m_loopStart = loopStart; } 79 void setLoopStart(double loopStart) { m_loopStart = loopStart; }
80 void setLoopEnd(double loopEnd) { m_loopEnd = loopEnd; } 80 void setLoopEnd(double loopEnd) { m_loopEnd = loopEnd; }
81 81
82 // Deprecated.
83 bool looping();
84 void setLooping(bool);
85
86 AudioParam* gain() { return m_gain.get(); } 82 AudioParam* gain() { return m_gain.get(); }
87 AudioParam* playbackRate() { return m_playbackRate.get(); } 83 AudioParam* playbackRate() { return m_playbackRate.get(); }
88 84
89 // If a panner node is set, then we can incorporate doppler shift into the p layback pitch rate. 85 // If a panner node is set, then we can incorporate doppler shift into the p layback pitch rate.
90 void setPannerNode(PannerNode*); 86 void setPannerNode(PannerNode*);
91 void clearPannerNode(); 87 void clearPannerNode();
92 88
93 // If we are no longer playing, propogate silence ahead to downstream nodes. 89 // If we are no longer playing, propogate silence ahead to downstream nodes.
94 virtual bool propagatesSilence() const; 90 virtual bool propagatesSilence() const;
95 91
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // the pitch rate. We manually manage ref-counting because we want to use Re fTypeConnection. 139 // the pitch rate. We manually manage ref-counting because we want to use Re fTypeConnection.
144 PannerNode* m_pannerNode; 140 PannerNode* m_pannerNode;
145 141
146 // This synchronizes process() with setBuffer() which can cause dynamic chan nel count changes. 142 // This synchronizes process() with setBuffer() which can cause dynamic chan nel count changes.
147 mutable Mutex m_processLock; 143 mutable Mutex m_processLock;
148 }; 144 };
149 145
150 } // namespace WebCore 146 } // namespace WebCore
151 147
152 #endif // AudioBufferSourceNode_h 148 #endif // AudioBufferSourceNode_h
OLDNEW
« no previous file with comments | « Source/modules/quota/DOMWindowQuota.idl ('k') | Source/modules/webaudio/AudioBufferSourceNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698