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

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

Issue 385953003: Revert of WebAudio: Remove AudioNode::RefType. (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
« no previous file with comments | « no previous file | Source/modules/webaudio/AudioBufferSourceNode.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 // Granular playback 124 // Granular playback
125 bool m_isGrain; 125 bool m_isGrain;
126 double m_grainOffset; // in seconds 126 double m_grainOffset; // in seconds
127 double m_grainDuration; // in seconds 127 double m_grainDuration; // in seconds
128 128
129 // totalPitchRate() returns the instantaneous pitch rate (non-time preservin g). 129 // totalPitchRate() returns the instantaneous pitch rate (non-time preservin g).
130 // It incorporates the base pitch rate, any sample-rate conversion factor fr om the buffer, and any doppler shift from an associated panner node. 130 // It incorporates the base pitch rate, any sample-rate conversion factor fr om the buffer, and any doppler shift from an associated panner node.
131 double totalPitchRate(); 131 double totalPitchRate();
132 132
133 // We optionally keep track of a panner node which has a doppler shift that 133 // We optionally keep track of a panner node which has a doppler shift that is incorporated into
134 // is incorporated into the pitch rate. 134 // the pitch rate. We manually manage ref-counting because we want to use Re fTypeConnection.
135 // This RefPtr is connection reference. We must call AudioNode:: 135 PannerNode* m_pannerNode;
136 // makeConnection() after ref(), and call AudioNode::breakConnection()
137 // before deref().
138 RefPtr<PannerNode> m_pannerNode;
139 136
140 // This synchronizes process() with setBuffer() which can cause dynamic chan nel count changes. 137 // This synchronizes process() with setBuffer() which can cause dynamic chan nel count changes.
141 mutable Mutex m_processLock; 138 mutable Mutex m_processLock;
142 }; 139 };
143 140
144 } // namespace WebCore 141 } // namespace WebCore
145 142
146 #endif // AudioBufferSourceNode_h 143 #endif // AudioBufferSourceNode_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/webaudio/AudioBufferSourceNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698