| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 { | 54 { |
| 55 // Use musical pitch standard A440 as a default. | 55 // Use musical pitch standard A440 as a default. |
| 56 m_frequency = AudioParam::create(context, 440); | 56 m_frequency = AudioParam::create(context, 440); |
| 57 // Default to no detuning. | 57 // Default to no detuning. |
| 58 m_detune = AudioParam::create(context, 0); | 58 m_detune = AudioParam::create(context, 0); |
| 59 | 59 |
| 60 // Sets up default wavetable. | 60 // Sets up default wavetable. |
| 61 setType(m_type); | 61 setType(m_type); |
| 62 | 62 |
| 63 // An oscillator is always mono. | 63 // An oscillator is always mono. |
| 64 addOutput(AudioNodeOutput::create(this, 1)); | 64 addOutput(1); |
| 65 | 65 |
| 66 initialize(); | 66 initialize(); |
| 67 } | 67 } |
| 68 | 68 |
| 69 OscillatorNode::~OscillatorNode() | 69 OscillatorNode::~OscillatorNode() |
| 70 { | 70 { |
| 71 ASSERT(!isInitialized()); | 71 ASSERT(!isInitialized()); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void OscillatorNode::dispose() | 74 void OscillatorNode::dispose() |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 { | 344 { |
| 345 visitor->trace(m_frequency); | 345 visitor->trace(m_frequency); |
| 346 visitor->trace(m_detune); | 346 visitor->trace(m_detune); |
| 347 visitor->trace(m_periodicWave); | 347 visitor->trace(m_periodicWave); |
| 348 AudioScheduledSourceNode::trace(visitor); | 348 AudioScheduledSourceNode::trace(visitor); |
| 349 } | 349 } |
| 350 | 350 |
| 351 } // namespace blink | 351 } // namespace blink |
| 352 | 352 |
| 353 #endif // ENABLE(WEB_AUDIO) | 353 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |