2013-02-10, 03:36
original code
fails with:
>..\..\xbmc\cores\AudioEngine\AESinkFactory.cpp(145): warning C4003: not enough actual parameters for macro 'ENUMERATE_SINK'
8>..\..\xbmc\cores\AudioEngine\AESinkFactory.cpp(145): error C2059: syntax error : ')'
compiles and works fine.
seems to just be missing the , force on both the windows defines.
Code:
void CAESinkFactory::EnumerateEx(AESinkInfoList &list, bool force)
{
#if defined(TARGET_WINDOWS)
ENUMERATE_SINK(DirectSound);
if (g_sysinfo.IsVistaOrHigher() && !g_advancedSettings.m_audioForceDirectSound)
ENUMERATE_SINK(WASAPI);
#elif defined(TARGET_ANDROID)
ENUMERATE_SINK(AUDIOTRACK);
#elif defined(TARGET_LINUX) || defined(TARGET_FREEBSD)
#if defined(HAS_ALSA)
ENUMERATE_SINK(ALSA, force);
#endif
ENUMERATE_SINK(OSS, force);
#endif
}
fails with:
>..\..\xbmc\cores\AudioEngine\AESinkFactory.cpp(145): warning C4003: not enough actual parameters for macro 'ENUMERATE_SINK'
8>..\..\xbmc\cores\AudioEngine\AESinkFactory.cpp(145): error C2059: syntax error : ')'
Code:
void CAESinkFactory::EnumerateEx(AESinkInfoList &list, bool force)
{
#if defined(TARGET_WINDOWS)
ENUMERATE_SINK(DirectSound, force);
if (g_sysinfo.IsVistaOrHigher() && !g_advancedSettings.m_audioForceDirectSound)
ENUMERATE_SINK(WASAPI, force);
#elif defined(TARGET_ANDROID)
ENUMERATE_SINK(AUDIOTRACK);
#elif defined(TARGET_LINUX) || defined(TARGET_FREEBSD)
#if defined(HAS_ALSA)
ENUMERATE_SINK(ALSA, force);
#endif
ENUMERATE_SINK(OSS, force);
#endif
}
seems to just be missing the , force on both the windows defines.