1 #ifndef AV_DEVICE_TEST_H_
2 #define AV_DEVICE_TEST_H_
15 class AV_EXPORT AVDeviceTest {
33 typedef void (*DeviceOperationCallback)(AVDeviceTest* device_test,
AVDevice::DeviceOperation oper,
const std::string& device_id,
34 int32 result,
void* custom_data);
44 virtual void SetDeviceOperationCallback(DeviceOperationCallback device_operation_callback,
45 void* custom_data = NULL) = 0;
57 virtual int32 EnableDevice(
const std::string& device_id,
bool is_enable =
true) = 0;
66 virtual AVDevice* GetDeviceById(
const std::string& device_id) = 0;
75 virtual int32 GetDeviceCountByType(
const std::string& device_type) = 0;
84 virtual std::vector<std::string> GetDeviceIdListByType(
const std::string& device_type) = 0;
93 virtual std::vector<std::string> GetDeviceNameListByType(
const std::string& device_type) = 0;
105 virtual int32 GetDeviceListByType(
const std::string& device_type, AVDevice** device_array[]) = 0;
107 DISALLOW_EVIL_DESTRUCTIONS(AVDeviceTest)
113 #endif // #ifndef AV_DEVICE_TEST_H_
Definition: av_audio_ctrl.h:6
DeviceOperation
设备操作类型。
Definition: av_device_base.h:21