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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 , m_loopEnd(0) | 60 , m_loopEnd(0) |
61 , m_virtualReadIndex(0) | 61 , m_virtualReadIndex(0) |
62 , m_isGrain(false) | 62 , m_isGrain(false) |
63 , m_grainOffset(0.0) | 63 , m_grainOffset(0.0) |
64 , m_grainDuration(DefaultGrainDuration) | 64 , m_grainDuration(DefaultGrainDuration) |
65 { | 65 { |
66 m_playbackRate = AudioParam::create(context, 1.0); | 66 m_playbackRate = AudioParam::create(context, 1.0); |
67 | 67 |
68 // Default to mono. A call to setBuffer() will set the number of output | 68 // Default to mono. A call to setBuffer() will set the number of output |
69 // channels to that of the buffer. | 69 // channels to that of the buffer. |
70 addOutput(AudioNodeOutput::create(this, 1)); | 70 addOutput(1); |
71 | 71 |
72 initialize(); | 72 initialize(); |
73 } | 73 } |
74 | 74 |
75 AudioBufferSourceNode::~AudioBufferSourceNode() | 75 AudioBufferSourceNode::~AudioBufferSourceNode() |
76 { | 76 { |
77 ASSERT(!isInitialized()); | 77 ASSERT(!isInitialized()); |
78 } | 78 } |
79 | 79 |
80 void AudioBufferSourceNode::dispose() | 80 void AudioBufferSourceNode::dispose() |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 { | 567 { |
568 visitor->trace(m_buffer); | 568 visitor->trace(m_buffer); |
569 visitor->trace(m_playbackRate); | 569 visitor->trace(m_playbackRate); |
570 visitor->trace(m_pannerNode); | 570 visitor->trace(m_pannerNode); |
571 AudioScheduledSourceNode::trace(visitor); | 571 AudioScheduledSourceNode::trace(visitor); |
572 } | 572 } |
573 | 573 |
574 } // namespace blink | 574 } // namespace blink |
575 | 575 |
576 #endif // ENABLE(WEB_AUDIO) | 576 #endif // ENABLE(WEB_AUDIO) |
OLD | NEW |