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

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

Issue 205173002: Move webaudio to oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: WIP Created 6 years, 9 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) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 // Returns true if there are sample-accurate timeline parameter changes. 75 // Returns true if there are sample-accurate timeline parameter changes.
76 bool calculateSampleAccuratePhaseIncrements(size_t framesToProcess); 76 bool calculateSampleAccuratePhaseIncrements(size_t framesToProcess);
77 77
78 virtual bool propagatesSilence() const OVERRIDE; 78 virtual bool propagatesSilence() const OVERRIDE;
79 79
80 // One of the waveform types defined in the enum. 80 // One of the waveform types defined in the enum.
81 unsigned short m_type; 81 unsigned short m_type;
82 82
83 // Frequency value in Hertz. 83 // Frequency value in Hertz.
84 RefPtr<AudioParam> m_frequency; 84 RefPtrWillBePersistent<AudioParam> m_frequency;
85 85
86 // Detune value (deviating from the frequency) in Cents. 86 // Detune value (deviating from the frequency) in Cents.
87 RefPtr<AudioParam> m_detune; 87 RefPtrWillBePersistent<AudioParam> m_detune;
88 88
89 bool m_firstRender; 89 bool m_firstRender;
90 90
91 // m_virtualReadIndex is a sample-frame index into our buffer representing t he current playback position. 91 // m_virtualReadIndex is a sample-frame index into our buffer representing t he current playback position.
92 // Since it's floating-point, it has sub-sample accuracy. 92 // Since it's floating-point, it has sub-sample accuracy.
93 double m_virtualReadIndex; 93 double m_virtualReadIndex;
94 94
95 // This synchronizes process(). 95 // This synchronizes process().
96 mutable Mutex m_processLock; 96 mutable Mutex m_processLock;
97 97
98 // Stores sample-accurate values calculated according to frequency and detun e. 98 // Stores sample-accurate values calculated according to frequency and detun e.
99 AudioFloatArray m_phaseIncrements; 99 AudioFloatArray m_phaseIncrements;
100 AudioFloatArray m_detuneValues; 100 AudioFloatArray m_detuneValues;
101 101
102 RefPtr<PeriodicWave> m_periodicWave; 102 RefPtrWillBePersistent<PeriodicWave> m_periodicWave;
103 }; 103 };
104 104
105 } // namespace WebCore 105 } // namespace WebCore
106 106
107 #endif // OscillatorNode_h 107 #endif // OscillatorNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698