| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 ChannelCountMode internalChannelCountMode() const { | 222 ChannelCountMode internalChannelCountMode() const { |
| 223 return m_channelCountMode; | 223 return m_channelCountMode; |
| 224 } | 224 } |
| 225 AudioBus::ChannelInterpretation internalChannelInterpretation() const { | 225 AudioBus::ChannelInterpretation internalChannelInterpretation() const { |
| 226 return m_channelInterpretation; | 226 return m_channelInterpretation; |
| 227 } | 227 } |
| 228 | 228 |
| 229 void updateChannelCountMode(); | 229 void updateChannelCountMode(); |
| 230 void updateChannelInterpretation(); | 230 void updateChannelInterpretation(); |
| 231 | 231 |
| 232 // Default callbackBufferSize should be the render quantum size |
| 233 virtual size_t callbackBufferSize() const { |
| 234 return AudioUtilities::kRenderQuantumFrames; |
| 235 } |
| 236 |
| 232 protected: | 237 protected: |
| 233 // Inputs and outputs must be created before the AudioHandler is | 238 // Inputs and outputs must be created before the AudioHandler is |
| 234 // initialized. | 239 // initialized. |
| 235 void addInput(); | 240 void addInput(); |
| 236 void addOutput(unsigned numberOfChannels); | 241 void addOutput(unsigned numberOfChannels); |
| 237 | 242 |
| 238 // Called by processIfNecessary() to cause all parts of the rendering graph | 243 // Called by processIfNecessary() to cause all parts of the rendering graph |
| 239 // connected to us to process. Each rendering quantum, the audio data for | 244 // connected to us to process. Each rendering quantum, the audio data for |
| 240 // each of the AudioNode's inputs will be available after this method is | 245 // each of the AudioNode's inputs will be available after this method is |
| 241 // called. Called from context's audio thread. | 246 // called. Called from context's audio thread. |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 HeapVector<Member<HeapHashSet<Member<AudioNode>>>> m_connectedNodes; | 370 HeapVector<Member<HeapHashSet<Member<AudioNode>>>> m_connectedNodes; |
| 366 // Represents audio node graph with Oilpan references. N-th HeapHashSet | 371 // Represents audio node graph with Oilpan references. N-th HeapHashSet |
| 367 // represents a set of AudioParam objects connected to this AudioNode's N-th | 372 // represents a set of AudioParam objects connected to this AudioNode's N-th |
| 368 // output. | 373 // output. |
| 369 HeapVector<Member<HeapHashSet<Member<AudioParam>>>> m_connectedParams; | 374 HeapVector<Member<HeapHashSet<Member<AudioParam>>>> m_connectedParams; |
| 370 }; | 375 }; |
| 371 | 376 |
| 372 } // namespace blink | 377 } // namespace blink |
| 373 | 378 |
| 374 #endif // AudioNode_h | 379 #endif // AudioNode_h |
| OLD | NEW |