OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WebAudioConfiguration_h |
| 6 #define WebAudioConfiguration_h |
| 7 |
| 8 #include "base/optional.h" |
| 9 #include "public/platform/WebString.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 // Represents an AudioConfiguration dictionary to be used outside of Blink. |
| 14 // It is created by Blink and passed to consumers that can assume that all |
| 15 // required fields are properly set. |
| 16 struct WebAudioConfiguration { |
| 17 WebString contentType; |
| 18 |
| 19 // `channels` is Optional too but it will be reflected with `isNull()`. |
| 20 WebString channels; |
| 21 base::Optional<unsigned> bitrate; |
| 22 base::Optional<unsigned> samplerate; |
| 23 }; |
| 24 |
| 25 } // namespace blink |
| 26 |
| 27 #endif // WebAudioConfiguration_h |
OLD | NEW |