Skip to content
Permalink
Browse files

Wasapi: Do not probe for AE_FMT_AAC - we don't passthrough it anyways

  • Loading branch information...
fritsch authored and popcornmix committed Jun 23, 2015
1 parent 54b67a6 commit bc7316fc43a6d409e370cb40e66013eeded709c9
Showing with 0 additions and 11 deletions.
  1. +0 −11 xbmc/cores/AudioEngine/Sinks/AESinkWASAPI.cpp
@@ -750,17 +750,6 @@ void CAESinkWASAPI::EnumerateDevicesEx(AEDeviceInfoList &deviceInfoList, bool fo
deviceInfo.m_dataFormats.push_back(AEDataFormat(AE_FMT_AC3));
}

/* Test format AAC */
wfxex.SubFormat = KSDATAFORMAT_SUBTYPE_IEC61937_AAC;
hr = pClient->IsFormatSupported(AUDCLNT_SHAREMODE_EXCLUSIVE, &wfxex.Format, NULL);
if (SUCCEEDED(hr) || aeDeviceType == AE_DEVTYPE_HDMI)
{
if(FAILED(hr))
CLog::Log(LOGNOTICE, __FUNCTION__": data format \"%s\" on device \"%s\" seems to be not supported.", CAEUtil::DataFormatToStr(AE_FMT_AAC), strFriendlyName.c_str());

deviceInfo.m_dataFormats.push_back(AEDataFormat(AE_FMT_AAC));
}

/* Test format for PCM format iteration */
wfxex.Format.cbSize = sizeof(WAVEFORMATEXTENSIBLE)-sizeof(WAVEFORMATEX);
wfxex.dwChannelMask = KSAUDIO_SPEAKER_STEREO;

0 comments on commit bc7316f

Please sign in to comment.
You can’t perform that action at this time.