OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |