123456789101112131415161718192021222324252627282930 |
- #include "SoundCardData.h"
- SoundCardDataManager::~SoundCardDataManager()
- {
- }
- /* 设置声卡列表 */
- void SoundCardDataManager::setSoundCardInfo(std::map<std::string, SoundCardPCMInfo_t>& mapSoundInfo)
- {
- m_mapSoundCardInfo.clear();
- m_mapSoundCardInfo = mapSoundInfo;
- }
- /* 设置当前声卡 */
- bool SoundCardDataManager::setCurrentSoundCard(std::string strSoundCardName)
- {
- auto it = m_mapSoundCardInfo.find(strSoundCardName);
- if(it == m_mapSoundCardInfo.end())
- {
- return false;
- }
- m_currentSoundCardInfo = it->second;
-
- return true;
- }
|