OLD | NEW |
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 Loading... |
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 Loading... |
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) |
OLD | NEW |