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 15 matching lines...) Expand all Loading... |
26 #include "modules/webaudio/AudioDestinationNode.h" | 26 #include "modules/webaudio/AudioDestinationNode.h" |
27 #include "modules/webaudio/AudioNodeInput.h" | 27 #include "modules/webaudio/AudioNodeInput.h" |
28 #include "modules/webaudio/AudioNodeOutput.h" | 28 #include "modules/webaudio/AudioNodeOutput.h" |
29 #include "modules/webaudio/BaseAudioContext.h" | 29 #include "modules/webaudio/BaseAudioContext.h" |
30 #include "platform/audio/AudioUtilities.h" | 30 #include "platform/audio/AudioUtilities.h" |
31 #include "platform/audio/DenormalDisabler.h" | 31 #include "platform/audio/DenormalDisabler.h" |
32 #include "wtf/Atomics.h" | 32 #include "wtf/Atomics.h" |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 AudioDestinationHandler::AudioDestinationHandler(AudioNode& node, | 36 AudioDestinationHandler::AudioDestinationHandler(AudioNode& node) |
37 float sampleRate) | 37 : AudioHandler(NodeTypeDestination, node, node.context()->sampleRate()), |
38 : AudioHandler(NodeTypeDestination, node, sampleRate), | |
39 m_currentSampleFrame(0) { | 38 m_currentSampleFrame(0) { |
40 addInput(); | 39 addInput(); |
41 } | 40 } |
42 | 41 |
43 AudioDestinationHandler::~AudioDestinationHandler() { | 42 AudioDestinationHandler::~AudioDestinationHandler() { |
44 DCHECK(!isInitialized()); | 43 DCHECK(!isInitialized()); |
45 } | 44 } |
46 | 45 |
47 void AudioDestinationHandler::render(AudioBus* sourceBus, | 46 void AudioDestinationHandler::render(AudioBus* sourceBus, |
48 AudioBus* destinationBus, | 47 AudioBus* destinationBus, |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 115 |
117 AudioDestinationHandler& AudioDestinationNode::audioDestinationHandler() const { | 116 AudioDestinationHandler& AudioDestinationNode::audioDestinationHandler() const { |
118 return static_cast<AudioDestinationHandler&>(handler()); | 117 return static_cast<AudioDestinationHandler&>(handler()); |
119 } | 118 } |
120 | 119 |
121 unsigned long AudioDestinationNode::maxChannelCount() const { | 120 unsigned long AudioDestinationNode::maxChannelCount() const { |
122 return audioDestinationHandler().maxChannelCount(); | 121 return audioDestinationHandler().maxChannelCount(); |
123 } | 122 } |
124 | 123 |
125 } // namespace blink | 124 } // namespace blink |
OLD | NEW |