| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 NOTREACHED(); | 72 NOTREACHED(); |
| 73 return 0; | 73 return 0; |
| 74 } | 74 } |
| 75 | 75 |
| 76 size_t RenderQuantumFrames() const { | 76 size_t RenderQuantumFrames() const { |
| 77 return AudioUtilities::kRenderQuantumFrames; | 77 return AudioUtilities::kRenderQuantumFrames; |
| 78 } | 78 } |
| 79 | 79 |
| 80 void InitializeOfflineRenderThread(); | 80 void InitializeOfflineRenderThread(); |
| 81 | 81 |
| 82 bool RequiresTailProcessing() const override { return false; } |
| 83 |
| 82 private: | 84 private: |
| 83 OfflineAudioDestinationHandler(AudioNode&, AudioBuffer* render_target); | 85 OfflineAudioDestinationHandler(AudioNode&, AudioBuffer* render_target); |
| 84 | 86 |
| 85 // Set up the rendering and start. After setting the context up, it will | 87 // Set up the rendering and start. After setting the context up, it will |
| 86 // eventually call |doOfflineRendering|. | 88 // eventually call |doOfflineRendering|. |
| 87 void StartOfflineRendering(); | 89 void StartOfflineRendering(); |
| 88 | 90 |
| 89 // Suspend the rendering loop and notify the main thread to resolve the | 91 // Suspend the rendering loop and notify the main thread to resolve the |
| 90 // associated promise. | 92 // associated promise. |
| 91 void SuspendOfflineRendering(); | 93 void SuspendOfflineRendering(); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 static OfflineAudioDestinationNode* Create(BaseAudioContext*, | 136 static OfflineAudioDestinationNode* Create(BaseAudioContext*, |
| 135 AudioBuffer* render_target); | 137 AudioBuffer* render_target); |
| 136 | 138 |
| 137 private: | 139 private: |
| 138 OfflineAudioDestinationNode(BaseAudioContext&, AudioBuffer* render_target); | 140 OfflineAudioDestinationNode(BaseAudioContext&, AudioBuffer* render_target); |
| 139 }; | 141 }; |
| 140 | 142 |
| 141 } // namespace blink | 143 } // namespace blink |
| 142 | 144 |
| 143 #endif // OfflineAudioDestinationNode_h | 145 #endif // OfflineAudioDestinationNode_h |
| OLD | NEW |