| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 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 18 matching lines...) Expand all Loading... |
| 29 #include "core/dom/TaskRunnerHelper.h" | 29 #include "core/dom/TaskRunnerHelper.h" |
| 30 #include "modules/webaudio/AudioNodeInput.h" | 30 #include "modules/webaudio/AudioNodeInput.h" |
| 31 #include "modules/webaudio/AudioNodeOutput.h" | 31 #include "modules/webaudio/AudioNodeOutput.h" |
| 32 #include "modules/webaudio/BaseAudioContext.h" | 32 #include "modules/webaudio/BaseAudioContext.h" |
| 33 #include "modules/webaudio/OfflineAudioContext.h" | 33 #include "modules/webaudio/OfflineAudioContext.h" |
| 34 #include "platform/CrossThreadFunctional.h" | 34 #include "platform/CrossThreadFunctional.h" |
| 35 #include "platform/audio/AudioBus.h" | 35 #include "platform/audio/AudioBus.h" |
| 36 #include "platform/audio/AudioUtilities.h" | 36 #include "platform/audio/AudioUtilities.h" |
| 37 #include "platform/audio/DenormalDisabler.h" | 37 #include "platform/audio/DenormalDisabler.h" |
| 38 #include "platform/audio/HRTFDatabaseLoader.h" | 38 #include "platform/audio/HRTFDatabaseLoader.h" |
| 39 #include "platform/wtf/PtrUtil.h" |
| 39 #include "public/platform/Platform.h" | 40 #include "public/platform/Platform.h" |
| 40 #include "wtf/PtrUtil.h" | |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 OfflineAudioDestinationHandler::OfflineAudioDestinationHandler( | 44 OfflineAudioDestinationHandler::OfflineAudioDestinationHandler( |
| 45 AudioNode& node, | 45 AudioNode& node, |
| 46 AudioBuffer* render_target) | 46 AudioBuffer* render_target) |
| 47 : AudioDestinationHandler(node), | 47 : AudioDestinationHandler(node), |
| 48 render_target_(render_target), | 48 render_target_(render_target), |
| 49 render_thread_(WTF::WrapUnique( | 49 render_thread_(WTF::WrapUnique( |
| 50 Platform::Current()->CreateThread("offline audio renderer"))), | 50 Platform::Current()->CreateThread("offline audio renderer"))), |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 SetHandler(OfflineAudioDestinationHandler::Create(*this, render_target)); | 341 SetHandler(OfflineAudioDestinationHandler::Create(*this, render_target)); |
| 342 } | 342 } |
| 343 | 343 |
| 344 OfflineAudioDestinationNode* OfflineAudioDestinationNode::Create( | 344 OfflineAudioDestinationNode* OfflineAudioDestinationNode::Create( |
| 345 BaseAudioContext* context, | 345 BaseAudioContext* context, |
| 346 AudioBuffer* render_target) { | 346 AudioBuffer* render_target) { |
| 347 return new OfflineAudioDestinationNode(*context, render_target); | 347 return new OfflineAudioDestinationNode(*context, render_target); |
| 348 } | 348 } |
| 349 | 349 |
| 350 } // namespace blink | 350 } // namespace blink |
| OLD | NEW |