frameworks/av/services/audiopolicy/enginedefault/src/Engine.cpp:400:67: error: reference to type 'const android::DeviceTypeSet' (aka 'const set<audio_devices_t>') could not bind to an rvalue of type 'audio_devices_t' devices2 = availableOutputDevices.getDevicesFromTypes(AUDIO_DEVICE_OUT_AUX_DIGITAL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ frameworks/av/services/audiopolicy/common/managerdefinitions/include/DeviceDescriptor.h:136:59: note: passing argument to parameter 'types' here DeviceVector getDevicesFromTypes(const DeviceTypeSet& types) const; ^ frameworks/av/services/audiopolicy/enginedefault/src/Engine.cpp:402:67: error: reference to type 'const android::DeviceTypeSet' (aka 'const set<audio_devices_t>') could not bind to an rvalue of type 'audio_devices_t' devices2 = availableOutputDevices.getDevicesFromTypes(AUDIO_DEVICE_OUT_HDMI_1); ^~~~~~~~~~~~~~~~~~~~~~~ frameworks/av/services/audiopolicy/common/managerdefinitions/include/DeviceDescriptor.h:136:59: note: passing argument to parameter 'types' here DeviceVector getDevicesFromTypes(const DeviceTypeSet& types) const;
时间: 2023-10-22 22:09:43 浏览: 285
官方文档https://docs.nestjs.com:closed_book:-Node.js开发
这是一个编译错误,看起来是在使用一个类型为audio_devices_t的变量作为const set<audio_devices_t>类型的参数导致的。可能是因为代码中使用了错误的类型或者语法错误导致的。建议检查包含这个错误的代码行及其周围的代码,以找出问题所在。另外,还可以考虑查看相关的头文件和库文件,以确保它们正确地包含和导入。
阅读全文