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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // Called from context's audio thread. | 72 // Called from context's audio thread. |
73 AudioBus* bus(); | 73 AudioBus* bus(); |
74 | 74 |
75 // updateInternalBus() updates m_internalSummingBus appropriately for the nu
mber of channels. | 75 // updateInternalBus() updates m_internalSummingBus appropriately for the nu
mber of channels. |
76 // This must be called when we own the context's graph lock in the audio thr
ead at the very start or end of the render quantum. | 76 // This must be called when we own the context's graph lock in the audio thr
ead at the very start or end of the render quantum. |
77 void updateInternalBus(); | 77 void updateInternalBus(); |
78 | 78 |
79 // The number of channels of the connection with the largest number of chann
els. | 79 // The number of channels of the connection with the largest number of chann
els. |
80 unsigned numberOfChannels() const; | 80 unsigned numberOfChannels() const; |
81 | 81 |
| 82 virtual void trace(Visitor*) OVERRIDE; |
| 83 |
82 private: | 84 private: |
83 AudioNode* m_node; | 85 AudioNode* m_node; |
84 | 86 |
85 // m_disabledOutputs contains the AudioNodeOutputs which are disabled (will
not be processed) by the audio graph rendering. | 87 // m_disabledOutputs contains the AudioNodeOutputs which are disabled (will
not be processed) by the audio graph rendering. |
86 // But, from JavaScript's perspective, these outputs are still connected to
us. | 88 // But, from JavaScript's perspective, these outputs are still connected to
us. |
87 // Generally, these represent disabled connections from "notes" which have f
inished playing but are not yet garbage collected. | 89 // Generally, these represent disabled connections from "notes" which have f
inished playing but are not yet garbage collected. |
88 HashSet<AudioNodeOutput*> m_disabledOutputs; | 90 HashSet<AudioNodeOutput*> m_disabledOutputs; |
89 | 91 |
90 // Called from context's audio thread. | 92 // Called from context's audio thread. |
91 AudioBus* internalSummingBus(); | 93 AudioBus* internalSummingBus(); |
92 void sumAllConnections(AudioBus* summingBus, size_t framesToProcess); | 94 void sumAllConnections(AudioBus* summingBus, size_t framesToProcess); |
93 | 95 |
94 RefPtr<AudioBus> m_internalSummingBus; | 96 RefPtr<AudioBus> m_internalSummingBus; |
95 }; | 97 }; |
96 | 98 |
97 } // namespace WebCore | 99 } // namespace WebCore |
98 | 100 |
99 #endif // AudioNodeInput_h | 101 #endif // AudioNodeInput_h |
OLD | NEW |