| OLD | NEW |
| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #include "platform/audio/AudioUtilities.h" | 31 #include "platform/audio/AudioUtilities.h" |
| 32 #include "platform/audio/VectorMath.h" | 32 #include "platform/audio/VectorMath.h" |
| 33 #include "modules/webaudio/AudioContext.h" | 33 #include "modules/webaudio/AudioContext.h" |
| 34 #include "modules/webaudio/AudioNodeOutput.h" | 34 #include "modules/webaudio/AudioNodeOutput.h" |
| 35 #include "modules/webaudio/PeriodicWave.h" | 35 #include "modules/webaudio/PeriodicWave.h" |
| 36 #include "wtf/MathExtras.h" | 36 #include "wtf/MathExtras.h" |
| 37 #include "wtf/StdLibExtras.h" | 37 #include "wtf/StdLibExtras.h" |
| 38 #include <algorithm> | 38 #include <algorithm> |
| 39 | 39 |
| 40 using namespace std; | |
| 41 | |
| 42 namespace WebCore { | 40 namespace WebCore { |
| 43 | 41 |
| 44 using namespace VectorMath; | 42 using namespace VectorMath; |
| 45 | 43 |
| 46 PassRefPtrWillBeRawPtr<OscillatorNode> OscillatorNode::create(AudioContext* cont
ext, float sampleRate) | 44 PassRefPtrWillBeRawPtr<OscillatorNode> OscillatorNode::create(AudioContext* cont
ext, float sampleRate) |
| 47 { | 45 { |
| 48 return adoptRefWillBeNoop(new OscillatorNode(context, sampleRate)); | 46 return adoptRefWillBeNoop(new OscillatorNode(context, sampleRate)); |
| 49 } | 47 } |
| 50 | 48 |
| 51 OscillatorNode::OscillatorNode(AudioContext* context, float sampleRate) | 49 OscillatorNode::OscillatorNode(AudioContext* context, float sampleRate) |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 { | 343 { |
| 346 visitor->trace(m_frequency); | 344 visitor->trace(m_frequency); |
| 347 visitor->trace(m_detune); | 345 visitor->trace(m_detune); |
| 348 visitor->trace(m_periodicWave); | 346 visitor->trace(m_periodicWave); |
| 349 AudioScheduledSourceNode::trace(visitor); | 347 AudioScheduledSourceNode::trace(visitor); |
| 350 } | 348 } |
| 351 | 349 |
| 352 } // namespace WebCore | 350 } // namespace WebCore |
| 353 | 351 |
| 354 #endif // ENABLE(WEB_AUDIO) | 352 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |