| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 Input(0).Pull(Output(0).Bus(), frames_to_process); | 110 Input(0).Pull(Output(0).Bus(), frames_to_process); |
| 111 } | 111 } |
| 112 | 112 |
| 113 // As soon as we know the channel count of our input, we can lazily initialize. | 113 // As soon as we know the channel count of our input, we can lazily initialize. |
| 114 // Sometimes this may be called more than once with different channel counts, in | 114 // Sometimes this may be called more than once with different channel counts, in |
| 115 // which case we must safely uninitialize and then re-initialize with the new | 115 // which case we must safely uninitialize and then re-initialize with the new |
| 116 // channel count. | 116 // channel count. |
| 117 void AudioBasicProcessorHandler::CheckNumberOfChannelsForInput( | 117 void AudioBasicProcessorHandler::CheckNumberOfChannelsForInput( |
| 118 AudioNodeInput* input) { | 118 AudioNodeInput* input) { |
| 119 DCHECK(Context()->IsAudioThread()); | 119 DCHECK(Context()->IsAudioThread()); |
| 120 ASSERT(Context()->IsGraphOwner()); | 120 DCHECK(Context()->IsGraphOwner()); |
| 121 | 121 |
| 122 DCHECK_EQ(input, &this->Input(0)); | 122 DCHECK_EQ(input, &this->Input(0)); |
| 123 if (input != &this->Input(0)) | 123 if (input != &this->Input(0)) |
| 124 return; | 124 return; |
| 125 | 125 |
| 126 DCHECK(Processor()); | 126 DCHECK(Processor()); |
| 127 if (!Processor()) | 127 if (!Processor()) |
| 128 return; | 128 return; |
| 129 | 129 |
| 130 unsigned number_of_channels = input->NumberOfChannels(); | 130 unsigned number_of_channels = input->NumberOfChannels(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 153 | 153 |
| 154 double AudioBasicProcessorHandler::TailTime() const { | 154 double AudioBasicProcessorHandler::TailTime() const { |
| 155 return processor_->TailTime(); | 155 return processor_->TailTime(); |
| 156 } | 156 } |
| 157 | 157 |
| 158 double AudioBasicProcessorHandler::LatencyTime() const { | 158 double AudioBasicProcessorHandler::LatencyTime() const { |
| 159 return processor_->LatencyTime(); | 159 return processor_->LatencyTime(); |
| 160 } | 160 } |
| 161 | 161 |
| 162 } // namespace blink | 162 } // namespace blink |
| OLD | NEW |