OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ppapi/cpp/dev/audio_input_dev.h" | 5 #include "ppapi/cpp/dev/audio_input_dev.h" |
6 | 6 |
7 #include "ppapi/c/dev/ppb_audio_input_dev.h" | 7 #include "ppapi/c/dev/ppb_audio_input_dev.h" |
8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
9 #include "ppapi/cpp/instance.h" | 9 #include "ppapi/cpp/instance.h" |
10 #include "ppapi/cpp/module.h" | 10 #include "ppapi/cpp/module.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 return has_interface<PPB_AudioInput_Dev>() && | 35 return has_interface<PPB_AudioInput_Dev>() && |
36 get_interface<PPB_AudioInput_Dev>()->StartCapture(pp_resource()); | 36 get_interface<PPB_AudioInput_Dev>()->StartCapture(pp_resource()); |
37 } | 37 } |
38 | 38 |
39 bool AudioInput_Dev::StopCapture() { | 39 bool AudioInput_Dev::StopCapture() { |
40 return has_interface<PPB_AudioInput_Dev>() && | 40 return has_interface<PPB_AudioInput_Dev>() && |
41 get_interface<PPB_AudioInput_Dev>()->StopCapture(pp_resource()); | 41 get_interface<PPB_AudioInput_Dev>()->StopCapture(pp_resource()); |
42 } | 42 } |
43 | 43 |
44 } // namespace pp | 44 } // namespace pp |
OLD | NEW |