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

Side by Side Diff: Source/modules/webaudio/PannerNode.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) 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 , m_cachedAzimuth(0) 59 , m_cachedAzimuth(0)
60 , m_cachedElevation(0) 60 , m_cachedElevation(0)
61 , m_cachedDistanceConeGain(1.0f) 61 , m_cachedDistanceConeGain(1.0f)
62 , m_cachedDopplerRate(1) 62 , m_cachedDopplerRate(1)
63 { 63 {
64 // Load the HRTF database asynchronously so we don't block the Javascript th read while creating the HRTF database. 64 // Load the HRTF database asynchronously so we don't block the Javascript th read while creating the HRTF database.
65 // The HRTF panner will return zeroes until the database is loaded. 65 // The HRTF panner will return zeroes until the database is loaded.
66 listener()->createAndLoadHRTFDatabaseLoader(context->sampleRate()); 66 listener()->createAndLoadHRTFDatabaseLoader(context->sampleRate());
67 67
68 addInput(); 68 addInput();
69 addOutput(AudioNodeOutput::create(this, 2)); 69 addOutput(2);
70 70
71 // Node-specific default mixing rules. 71 // Node-specific default mixing rules.
72 m_channelCount = 2; 72 m_channelCount = 2;
73 m_channelCountMode = ClampedMax; 73 m_channelCountMode = ClampedMax;
74 m_channelInterpretation = AudioBus::Speakers; 74 m_channelInterpretation = AudioBus::Speakers;
75 75
76 initialize(); 76 initialize();
77 } 77 }
78 78
79 PannerNode::~PannerNode() 79 PannerNode::~PannerNode()
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 583
584 DEFINE_TRACE(PannerNode) 584 DEFINE_TRACE(PannerNode)
585 { 585 {
586 visitor->trace(m_panner); 586 visitor->trace(m_panner);
587 AudioNode::trace(visitor); 587 AudioNode::trace(visitor);
588 } 588 }
589 589
590 } // namespace blink 590 } // namespace blink
591 591
592 #endif // ENABLE(WEB_AUDIO) 592 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/OscillatorNode.cpp ('k') | Source/modules/webaudio/ScriptProcessorNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698