src/audio/xaudio2/SDL_xaudio2_winrthelpers.cpp
changeset 8519 0a334fc866b0
parent 8397 8cd319461894
child 8582 c3e9a2b93517
     1.1 --- a/src/audio/xaudio2/SDL_xaudio2_winrthelpers.cpp	Wed Sep 04 20:20:36 2013 -0400
     1.2 +++ b/src/audio/xaudio2/SDL_xaudio2_winrthelpers.cpp	Fri Sep 06 19:07:15 2013 -0400
     1.3 @@ -8,7 +8,7 @@
     1.4  using Windows::Devices::Enumeration::DeviceInformationCollection;
     1.5  #endif
     1.6  
     1.7 -HRESULT IXAudio2_GetDeviceCount(IXAudio2 * ixa2, UINT32 * devcount)
     1.8 +extern "C" HRESULT __cdecl IXAudio2_GetDeviceCount(IXAudio2 * ixa2, UINT32 * devcount)
     1.9  {
    1.10  #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
    1.11      // There doesn't seem to be any audio device enumeration on Windows Phone.
    1.12 @@ -29,7 +29,7 @@
    1.13  #endif
    1.14  }
    1.15  
    1.16 -HRESULT IXAudio2_GetDeviceDetails(IXAudio2 * unused, UINT32 index, XAUDIO2_DEVICE_DETAILS * details)
    1.17 +extern "C" HRESULT IXAudio2_GetDeviceDetails(IXAudio2 * unused, UINT32 index, XAUDIO2_DEVICE_DETAILS * details)
    1.18  {
    1.19  #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
    1.20      // Windows Phone doesn't seem to have the same device enumeration APIs that