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 17 matching lines...) Expand all Loading... |
28 #include "platform/audio/AudioBus.h" | 28 #include "platform/audio/AudioBus.h" |
29 #include "modules/webaudio/AudioBuffer.h" | 29 #include "modules/webaudio/AudioBuffer.h" |
30 #include "modules/webaudio/AudioParam.h" | 30 #include "modules/webaudio/AudioParam.h" |
31 #include "modules/webaudio/AudioScheduledSourceNode.h" | 31 #include "modules/webaudio/AudioScheduledSourceNode.h" |
32 #include "modules/webaudio/PannerNode.h" | 32 #include "modules/webaudio/PannerNode.h" |
33 #include "wtf/OwnPtr.h" | 33 #include "wtf/OwnPtr.h" |
34 #include "wtf/PassRefPtr.h" | 34 #include "wtf/PassRefPtr.h" |
35 #include "wtf/RefPtr.h" | 35 #include "wtf/RefPtr.h" |
36 #include "wtf/Threading.h" | 36 #include "wtf/Threading.h" |
37 | 37 |
38 namespace WebCore { | 38 namespace blink { |
39 | 39 |
40 class AudioContext; | 40 class AudioContext; |
41 | 41 |
42 // AudioBufferSourceNode is an AudioNode representing an audio source from an in
-memory audio asset represented by an AudioBuffer. | 42 // AudioBufferSourceNode is an AudioNode representing an audio source from an in
-memory audio asset represented by an AudioBuffer. |
43 // It generally will be used for short sounds which require a high degree of sch
eduling flexibility (can playback in rhythmically perfect ways). | 43 // It generally will be used for short sounds which require a high degree of sch
eduling flexibility (can playback in rhythmically perfect ways). |
44 | 44 |
45 class AudioBufferSourceNode FINAL : public AudioScheduledSourceNode { | 45 class AudioBufferSourceNode FINAL : public AudioScheduledSourceNode { |
46 public: | 46 public: |
47 static PassRefPtrWillBeRawPtr<AudioBufferSourceNode> create(AudioContext*, f
loat sampleRate); | 47 static PassRefPtrWillBeRawPtr<AudioBufferSourceNode> create(AudioContext*, f
loat sampleRate); |
48 | 48 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // is incorporated into the pitch rate. | 134 // is incorporated into the pitch rate. |
135 // This RefPtr is connection reference. We must call AudioNode:: | 135 // This RefPtr is connection reference. We must call AudioNode:: |
136 // makeConnection() after ref(), and call AudioNode::breakConnection() | 136 // makeConnection() after ref(), and call AudioNode::breakConnection() |
137 // before deref(). | 137 // before deref(). |
138 RefPtr<PannerNode> m_pannerNode; | 138 RefPtr<PannerNode> m_pannerNode; |
139 | 139 |
140 // This synchronizes process() with setBuffer() which can cause dynamic chan
nel count changes. | 140 // This synchronizes process() with setBuffer() which can cause dynamic chan
nel count changes. |
141 mutable Mutex m_processLock; | 141 mutable Mutex m_processLock; |
142 }; | 142 }; |
143 | 143 |
144 } // namespace WebCore | 144 } // namespace blink |
145 | 145 |
146 #endif // AudioBufferSourceNode_h | 146 #endif // AudioBufferSourceNode_h |
OLD | NEW |