OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/media/webaudiosourceprovider_impl.h" | 5 #include "content/renderer/media/webaudiosourceprovider_impl.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "third_party/WebKit/public/web/WebAudioSourceProviderClient.h" | 10 #include "third_party/WebKit/public/platform/WebAudioSourceProviderClient.h" |
11 | 11 |
12 using blink::WebVector; | 12 using blink::WebVector; |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 // Simple helper class for Try() locks. Lock is Try()'d on construction and | 18 // Simple helper class for Try() locks. Lock is Try()'d on construction and |
19 // must be checked via the locked() attribute. If acquisition was successful | 19 // must be checked via the locked() attribute. If acquisition was successful |
20 // the lock will be released upon destruction. | 20 // the lock will be released upon destruction. |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 channels_ = params.channels(); | 165 channels_ = params.channels(); |
166 sample_rate_ = params.sample_rate(); | 166 sample_rate_ = params.sample_rate(); |
167 | 167 |
168 if (client_) { | 168 if (client_) { |
169 // Inform WebKit about the audio stream format. | 169 // Inform WebKit about the audio stream format. |
170 client_->setFormat(channels_, sample_rate_); | 170 client_->setFormat(channels_, sample_rate_); |
171 } | 171 } |
172 } | 172 } |
173 | 173 |
174 } // namespace content | 174 } // namespace content |
OLD | NEW |