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

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

Issue 1023113002: Web Audio: Change the argument of AudioNode::addOutput(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/MediaStreamAudioSourceNode.cpp ('k') | Source/modules/webaudio/PannerNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698