您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ AEDeviceList类代码示例

51自学网 2021-06-03 12:03:33
  C++
这篇教程C++ AEDeviceList类代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中AEDeviceList的典型用法代码示例。如果您正苦于以下问题:C++ AEDeviceList类的具体用法?C++ AEDeviceList怎么用?C++ AEDeviceList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

在下文中一共展示了AEDeviceList类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: SettingOptionsAudioDevicesFillerGeneral

void CActiveAESettings::SettingOptionsAudioDevicesFillerGeneral(const CSetting *setting, std::vector< std::pair<std::string, std::string> > &list, std::string &current, bool passthrough){  current = ((const CSettingString*)setting)->GetValue();  std::string firstDevice;  bool foundValue = false;  AEDeviceList sinkList;  CServiceBroker::GetActiveAE().EnumerateOutputDevices(sinkList, passthrough);  if (sinkList.empty())    list.push_back(std::make_pair("Error - no devices found", "error"));  else  {    for (AEDeviceList::const_iterator sink = sinkList.begin(); sink != sinkList.end(); ++sink)    {      if (sink == sinkList.begin())        firstDevice = sink->second;      list.push_back(std::make_pair(sink->first, sink->second));      if (StringUtils::EqualsNoCase(current, sink->second))        foundValue = true;    }  }  if (!foundValue)    current = firstDevice;}
开发者ID:TodPheonix,项目名称:xbmc,代码行数:27,


示例2: EnumerateOutputDevices

void CAEFactory::SettingOptionsAudioDevicesFillerGeneral(const CSetting *setting, std::vector< std::pair<std::string, std::string> > &list, std::string &current, bool passthrough){  current = ((const CSettingString*)setting)->GetValue();  std::string firstDevice;  bool foundValue = false;  AEDeviceList sinkList;  EnumerateOutputDevices(sinkList, passthrough);#if !defined(TARGET_DARWIN)  if (sinkList.size() == 0)    list.push_back(std::make_pair("Error - no devices found", "error"));  else  {#endif    for (AEDeviceList::const_iterator sink = sinkList.begin(); sink != sinkList.end(); sink++)    {      if (sink == sinkList.begin())        firstDevice = sink->second;#if defined(TARGET_DARWIN)      list.push_back(std::make_pair(sink->first, sink->first));#else      list.push_back(std::make_pair(sink->first, sink->second));#endif      if (StringUtils::EqualsNoCase(current, sink->second))        foundValue = true;    }#if !defined(TARGET_DARWIN)  }#endif  if (!foundValue)    current = firstDevice;}
开发者ID:nremenda,项目名称:xbmc,代码行数:35,


示例3: EnumerateOutputDevices

void CAEFactory::VerifyOutputDevice(std::string &device, bool passthrough){  AEDeviceList devices;  EnumerateOutputDevices(devices, passthrough);  std::string firstDevice;  for (AEDeviceList::const_iterator deviceIt = devices.begin(); deviceIt != devices.end(); deviceIt++)  {    std::string currentDevice = deviceIt->second;    /* remember the first device so we can default to it if required */    if (firstDevice.empty())      firstDevice = deviceIt->second;    if (deviceIt->second == device)      return;    else if (deviceIt->first == device)    {      device = deviceIt->second;      return;    }  }  /* if the device wasnt found, set it to the first viable output */  device = firstDevice;}
开发者ID:AFFLUENTSOCIETY,项目名称:SPMC,代码行数:25,


示例4: EnumerateOutputDevices

void CPiAudioAE::EnumerateOutputDevices(AEDeviceList &devices, bool passthrough){   if (!passthrough)   {     devices.push_back(AEDevice("Analogue", "Analogue"));     devices.push_back(AEDevice("HDMI", "HDMI"));   }}
开发者ID:CaptainRewind,项目名称:xbmc,代码行数:8,


示例5: EnumerateOutputDevices

void CActiveAESink::EnumerateOutputDevices(AEDeviceList &devices, bool passthrough){  EnumerateSinkList(false);  for (AESinkInfoList::iterator itt = m_sinkInfoList.begin(); itt != m_sinkInfoList.end(); ++itt)  {    AESinkInfo sinkInfo = *itt;    for (AEDeviceInfoList::iterator itt2 = sinkInfo.m_deviceInfoList.begin(); itt2 != sinkInfo.m_deviceInfoList.end(); ++itt2)    {      CAEDeviceInfo devInfo = *itt2;      if (passthrough && devInfo.m_deviceType == AE_DEVTYPE_PCM)        continue;      std::string device = sinkInfo.m_sinkName + ":" + devInfo.m_deviceName;      std::stringstream ss;      /* add the sink name if we have more then one sink type */      if (m_sinkInfoList.size() > 1)        ss << sinkInfo.m_sinkName << ": ";      ss << devInfo.m_displayName;      if (!devInfo.m_displayNameExtra.empty())        ss << ", " << devInfo.m_displayNameExtra;      devices.push_back(AEDevice(ss.str(), device));    }  }}
开发者ID:Karlson2k,项目名称:xbmc,代码行数:29,


示例6: EnumerateOutputDevices

void CCoreAudioAEHALIOS::EnumerateOutputDevices(AEDeviceList &devices, bool passthrough){  IOSCoreAudioDeviceList deviceList;  CIOSCoreAudioHardware::GetOutputDevices(&deviceList);  // Add default output device if GetOutputDevices return nothing  devices.push_back(AEDevice("Default", "IOSCoreAudio:default"));  std::string deviceName;  for (int i = 0; !deviceList.empty(); i++)  {    std::string deviceName_Internal = std::string("IOSCoreAudio:") + deviceName;    devices.push_back(AEDevice(deviceName, deviceName_Internal));    deviceList.pop_front();  }}
开发者ID:midripps,项目名称:xbmc,代码行数:18,


示例7: EnumerateOutputDevices

void CCoreAudioAEHALOSX::EnumerateOutputDevices(AEDeviceList &devices, bool passthrough){  CoreAudioDeviceList deviceList;  CCoreAudioHardware::GetOutputDevices(&deviceList);  devices.push_back(AEDevice("Default", "CoreAudio:default"));  std::string deviceName;  for (int i = 0; !deviceList.empty(); i++)  {    CCoreAudioDevice device(deviceList.front());    deviceName = device.GetName();    std::string deviceName_Internal = std::string("CoreAudio:");    deviceName_Internal.append(deviceName);    devices.push_back(AEDevice(deviceName, deviceName_Internal));    deviceList.pop_front();  }}
开发者ID:CenturyGlorion,项目名称:xbmc,代码行数:20,


示例8: EnumerateOutputDevices

void CPulseAE::EnumerateOutputDevices(AEDeviceList &devices, bool passthrough){  if (!m_MainLoop || ! m_Context)    return;  pa_threaded_mainloop_lock(m_MainLoop);  SinkInfoStruct sinkStruct;  sinkStruct.passthrough = passthrough;  sinkStruct.mainloop = m_MainLoop;  sinkStruct.list = &devices;  CStdString def;  def.Format("%s (PulseAudio)",g_localizeStrings.Get(409).c_str());  devices.push_back(AEDevice(def, "pulse:[email
C++ AE_DSP_ADDON类代码示例
C++ AEDeviceInfoList类代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。