2 * Copyright (C) 2012 Team XBMC
5 * This Program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
10 * This Program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with XBMC; see the file COPYING. If not, write to
17 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
18 * http://www.gnu.org/copyleft/gpl.html
23 #include "AEDeviceInfo.h"
26 CAEDeviceInfo::operator std::string()
29 ss << "m_deviceName : " << m_deviceName << '\n';
30 ss << "m_displayName : " << m_displayName << '\n';
31 ss << "m_displayNameExtra: " << m_displayNameExtra << '\n';
32 ss << "m_deviceType : " << DeviceTypeToString(m_deviceType) + '\n';
33 ss << "m_channels : " << (std::string)m_channels << '\n';
35 ss << "m_sampleRates : ";
36 for (AESampleRateList::iterator itt = m_sampleRates.begin(); itt != m_sampleRates.end(); ++itt)
38 if (itt != m_sampleRates.begin())
44 ss << "m_dataFormats : ";
45 for (AEDataFormatList::iterator itt = m_dataFormats.begin(); itt != m_dataFormats.end(); ++itt)
47 if (itt != m_dataFormats.begin())
49 ss << CAEUtil::DataFormatToStr(*itt);
56 std::string CAEDeviceInfo::DeviceTypeToString(enum AEDeviceType deviceType)
60 case AE_DEVTYPE_PCM : return "AE_DEVTYPE_PCM" ; break;
61 case AE_DEVTYPE_IEC958: return "AE_DEVTYPE_IEC958"; break;
62 case AE_DEVTYPE_HDMI : return "AE_DEVTYPE_HDMI" ; break;
63 case AE_DEVTYPE_DP : return "AE_DEVTYPE_DP" ; break;