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 #ifndef PPAPI_CPP_DEV_AUDIO_INPUT_DEV_H_ | 5 #ifndef PPAPI_CPP_DEV_AUDIO_INPUT_DEV_H_ |
6 #define PPAPI_CPP_DEV_AUDIO_INPUT_DEV_H_ | 6 #define PPAPI_CPP_DEV_AUDIO_INPUT_DEV_H_ |
7 | 7 |
8 #include "ppapi/c/dev/ppb_audio_input_dev.h" | 8 #include "ppapi/c/dev/ppb_audio_input_dev.h" |
9 #include "ppapi/cpp/audio_config.h" | 9 #include "ppapi/cpp/audio_config.h" |
10 #include "ppapi/cpp/resource.h" | 10 #include "ppapi/cpp/resource.h" |
11 | 11 |
12 namespace pp { | 12 namespace pp { |
13 | 13 |
14 class Instance; | 14 class InstanceHandle; |
15 | 15 |
16 class AudioInput_Dev : public Resource { | 16 class AudioInput_Dev : public Resource { |
17 public: | 17 public: |
18 /// An empty constructor for an AudioInput resource. | 18 /// An empty constructor for an AudioInput resource. |
19 AudioInput_Dev() {} | 19 AudioInput_Dev() {} |
20 | 20 |
21 AudioInput_Dev(Instance* instance, | 21 AudioInput_Dev(const InstanceHandle& instance, |
22 const AudioConfig& config, | 22 const AudioConfig& config, |
23 PPB_AudioInput_Callback callback, | 23 PPB_AudioInput_Callback callback, |
24 void* user_data); | 24 void* user_data); |
25 | 25 |
26 /// Static function for determining whether the browser supports the required | 26 /// Static function for determining whether the browser supports the required |
27 /// AudioInput interface. | 27 /// AudioInput interface. |
28 /// | 28 /// |
29 /// @return true if the interface is available, false otherwise. | 29 /// @return true if the interface is available, false otherwise. |
30 static bool IsAvailable(); | 30 static bool IsAvailable(); |
31 | 31 |
(...skipping 13 matching lines...) Expand all Loading... |
45 bool StartCapture(); | 45 bool StartCapture(); |
46 bool StopCapture(); | 46 bool StopCapture(); |
47 | 47 |
48 private: | 48 private: |
49 AudioConfig config_; | 49 AudioConfig config_; |
50 }; | 50 }; |
51 | 51 |
52 } // namespace pp | 52 } // namespace pp |
53 | 53 |
54 #endif // PPAPI_CPP_DEV_AUDIO_INPUT_DEV_H_ | 54 #endif // PPAPI_CPP_DEV_AUDIO_INPUT_DEV_H_ |
OLD | NEW |