| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #include "modules/webaudio/MediaStreamAudioDestinationNode.h" | 26 #include "modules/webaudio/MediaStreamAudioDestinationNode.h" |
| 27 #include "bindings/core/v8/ExceptionMessages.h" | 27 #include "bindings/core/v8/ExceptionMessages.h" |
| 28 #include "bindings/core/v8/ExceptionState.h" | 28 #include "bindings/core/v8/ExceptionState.h" |
| 29 #include "core/dom/ExceptionCode.h" | 29 #include "core/dom/ExceptionCode.h" |
| 30 #include "modules/webaudio/AudioNodeInput.h" | 30 #include "modules/webaudio/AudioNodeInput.h" |
| 31 #include "modules/webaudio/AudioNodeOptions.h" | 31 #include "modules/webaudio/AudioNodeOptions.h" |
| 32 #include "modules/webaudio/BaseAudioContext.h" | 32 #include "modules/webaudio/BaseAudioContext.h" |
| 33 #include "platform/UUID.h" | 33 #include "platform/UUID.h" |
| 34 #include "platform/mediastream/MediaStreamCenter.h" | 34 #include "platform/mediastream/MediaStreamCenter.h" |
| 35 #include "platform/wtf/Locker.h" |
| 35 #include "public/platform/WebRTCPeerConnectionHandler.h" | 36 #include "public/platform/WebRTCPeerConnectionHandler.h" |
| 36 #include "wtf/Locker.h" | |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 // WebAudioCapturerSource ignores the channel count beyond 8, so we set the | 40 // WebAudioCapturerSource ignores the channel count beyond 8, so we set the |
| 41 // block here to avoid anything can cause the crash. | 41 // block here to avoid anything can cause the crash. |
| 42 static const unsigned long kMaxChannelCount = 8; | 42 static const unsigned long kMaxChannelCount = 8; |
| 43 | 43 |
| 44 MediaStreamAudioDestinationHandler::MediaStreamAudioDestinationHandler( | 44 MediaStreamAudioDestinationHandler::MediaStreamAudioDestinationHandler( |
| 45 AudioNode& node, | 45 AudioNode& node, |
| 46 size_t number_of_channels) | 46 size_t number_of_channels) |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 node->HandleChannelOptions(options, exception_state); | 181 node->HandleChannelOptions(options, exception_state); |
| 182 | 182 |
| 183 return node; | 183 return node; |
| 184 } | 184 } |
| 185 | 185 |
| 186 MediaStream* MediaStreamAudioDestinationNode::stream() const { | 186 MediaStream* MediaStreamAudioDestinationNode::stream() const { |
| 187 return static_cast<MediaStreamAudioDestinationHandler&>(Handler()).Stream(); | 187 return static_cast<MediaStreamAudioDestinationHandler&>(Handler()).Stream(); |
| 188 } | 188 } |
| 189 | 189 |
| 190 } // namespace blink | 190 } // namespace blink |
| OLD | NEW |