| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 NodeTypeEnd | 82 NodeTypeEnd |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 enum ChannelCountMode { | 85 enum ChannelCountMode { |
| 86 Max, | 86 Max, |
| 87 ClampedMax, | 87 ClampedMax, |
| 88 Explicit | 88 Explicit |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 NodeType nodeType() const { return m_nodeType; } | 91 NodeType nodeType() const { return m_nodeType; } |
| 92 String nodeTypeName() const; |
| 92 void setNodeType(NodeType); | 93 void setNodeType(NodeType); |
| 93 | 94 |
| 94 // We handle our own ref-counting because of the threading issues and subtle
nature of | 95 // We handle our own ref-counting because of the threading issues and subtle
nature of |
| 95 // how AudioNodes can continue processing (playing one-shot sound) after the
re are no more | 96 // how AudioNodes can continue processing (playing one-shot sound) after the
re are no more |
| 96 // JavaScript references to the object. | 97 // JavaScript references to the object. |
| 97 enum RefType { RefTypeNormal, RefTypeConnection }; | 98 enum RefType { RefTypeNormal, RefTypeConnection }; |
| 98 | 99 |
| 99 // Can be called from main thread or context's audio thread. | 100 // Can be called from main thread or context's audio thread. |
| 100 void ref(RefType refType = RefTypeNormal); | 101 void ref(RefType refType = RefTypeNormal); |
| 101 void deref(RefType refType = RefTypeNormal); | 102 void deref(RefType refType = RefTypeNormal); |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 225 |
| 225 protected: | 226 protected: |
| 226 unsigned m_channelCount; | 227 unsigned m_channelCount; |
| 227 ChannelCountMode m_channelCountMode; | 228 ChannelCountMode m_channelCountMode; |
| 228 AudioBus::ChannelInterpretation m_channelInterpretation; | 229 AudioBus::ChannelInterpretation m_channelInterpretation; |
| 229 }; | 230 }; |
| 230 | 231 |
| 231 } // namespace WebCore | 232 } // namespace WebCore |
| 232 | 233 |
| 233 #endif // AudioNode_h | 234 #endif // AudioNode_h |
| OLD | NEW |