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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 // propagatesSilence() should return true if the node will generate silent o
utput when given silent input. By default, AudioNode | 159 // propagatesSilence() should return true if the node will generate silent o
utput when given silent input. By default, AudioNode |
160 // will take tailTime() and latencyTime() into account when determining whet
her the node will propagate silence. | 160 // will take tailTime() and latencyTime() into account when determining whet
her the node will propagate silence. |
161 virtual bool propagatesSilence() const; | 161 virtual bool propagatesSilence() const; |
162 bool inputsAreSilent(); | 162 bool inputsAreSilent(); |
163 void silenceOutputs(); | 163 void silenceOutputs(); |
164 void unsilenceOutputs(); | 164 void unsilenceOutputs(); |
165 | 165 |
166 void enableOutputsIfNecessary(); | 166 void enableOutputsIfNecessary(); |
167 void disableOutputsIfNecessary(); | 167 void disableOutputsIfNecessary(); |
168 | 168 |
169 void reportMemoryUsage(MemoryObjectInfo*) const; | |
170 | |
171 unsigned long channelCount(); | 169 unsigned long channelCount(); |
172 virtual void setChannelCount(unsigned long, ExceptionCode&); | 170 virtual void setChannelCount(unsigned long, ExceptionCode&); |
173 | 171 |
174 String channelCountMode(); | 172 String channelCountMode(); |
175 void setChannelCountMode(const String&, ExceptionCode&); | 173 void setChannelCountMode(const String&, ExceptionCode&); |
176 | 174 |
177 String channelInterpretation(); | 175 String channelInterpretation(); |
178 void setChannelInterpretation(const String&, ExceptionCode&); | 176 void setChannelInterpretation(const String&, ExceptionCode&); |
179 | 177 |
180 ChannelCountMode internalChannelCountMode() const { return m_channelCountMod
e; } | 178 ChannelCountMode internalChannelCountMode() const { return m_channelCountMod
e; } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 216 |
219 protected: | 217 protected: |
220 unsigned m_channelCount; | 218 unsigned m_channelCount; |
221 ChannelCountMode m_channelCountMode; | 219 ChannelCountMode m_channelCountMode; |
222 AudioBus::ChannelInterpretation m_channelInterpretation; | 220 AudioBus::ChannelInterpretation m_channelInterpretation; |
223 }; | 221 }; |
224 | 222 |
225 } // namespace WebCore | 223 } // namespace WebCore |
226 | 224 |
227 #endif // AudioNode_h | 225 #endif // AudioNode_h |
OLD | NEW |