| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 #else | 73 #else |
| 74 ASSERT_NOT_REACHED(); | 74 ASSERT_NOT_REACHED(); |
| 75 #endif | 75 #endif |
| 76 } | 76 } |
| 77 | 77 |
| 78 void WebAudioBus::reset() | 78 void WebAudioBus::reset() |
| 79 { | 79 { |
| 80 #if ENABLE(WEB_AUDIO) | 80 #if ENABLE(WEB_AUDIO) |
| 81 if (m_private) { | 81 if (m_private) { |
| 82 (static_cast<AudioBus*>(m_private))->deref(); | 82 (static_cast<AudioBus*>(m_private))->deref(); |
| 83 m_private = 0; | 83 m_private = nullptr; |
| 84 } | 84 } |
| 85 #else | 85 #else |
| 86 ASSERT_NOT_REACHED(); | 86 ASSERT_NOT_REACHED(); |
| 87 #endif | 87 #endif |
| 88 } | 88 } |
| 89 | 89 |
| 90 unsigned WebAudioBus::numberOfChannels() const | 90 unsigned WebAudioBus::numberOfChannels() const |
| 91 { | 91 { |
| 92 #if ENABLE(WEB_AUDIO) | 92 #if ENABLE(WEB_AUDIO) |
| 93 if (!m_private) | 93 if (!m_private) |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 #else | 133 #else |
| 134 ASSERT_NOT_REACHED(); | 134 ASSERT_NOT_REACHED(); |
| 135 return 0; | 135 return 0; |
| 136 #endif | 136 #endif |
| 137 } | 137 } |
| 138 | 138 |
| 139 PassRefPtr<AudioBus> WebAudioBus::release() | 139 PassRefPtr<AudioBus> WebAudioBus::release() |
| 140 { | 140 { |
| 141 #if ENABLE(WEB_AUDIO) | 141 #if ENABLE(WEB_AUDIO) |
| 142 RefPtr<AudioBus> audioBus(adoptRef(static_cast<AudioBus*>(m_private))); | 142 RefPtr<AudioBus> audioBus(adoptRef(static_cast<AudioBus*>(m_private))); |
| 143 m_private = 0; | 143 m_private = nullptr; |
| 144 return audioBus; | 144 return audioBus; |
| 145 #else | 145 #else |
| 146 ASSERT_NOT_REACHED(); | 146 ASSERT_NOT_REACHED(); |
| 147 return 0; | 147 return 0; |
| 148 #endif | 148 #endif |
| 149 } | 149 } |
| 150 | 150 |
| 151 } // namespace blink | 151 } // namespace blink |
| OLD | NEW |