error in AESinkFactory.cpp Windows 02f4688
#1
original code
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

}
compiles and works fine.

seems to just be missing the , force on both the windows defines.

Main Rig [Scorpius] - Core i7 2600k @ 5Ghz. 16 Gig DDR3 1600. 1x HD 6990 1x HD 4870 Hackintosh [Chiana] - Core i5 @ 3.8Ghz. 12 Gig DDR3 Linux [Moya] - Core2 Duo E8200 - 2 Gigs DDR2 800 WHS [Zhaan] - DualCore [email protected] - 4 Gigs DDR2 800 VMC [Jothee] Core2 Quad @ 2.8Ghz 4 Gigs DDR2 800 VMC [Aeryn] Core2 E8400 @ 3.0Ghz 2 Gigs DDR2 800 2TB Server [Talyn] Core2 Quad Q6600 @ 3.0Ghz - 8 Gigs DDR2 1066 FileServer [Crichton] P4 650 3.4GHz - 2 Gigs DDR
Reply

Logout Mark Read Team Forum Stats Members Help
error in AESinkFactory.cpp Windows 02f46880