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

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

Issue 403013002: Rename WebCore to blink in Modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | 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 17 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioBufferCallback.h ('k') | Source/modules/webaudio/AudioBufferSourceNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698