Go to the source code of this file.
◆ IXAudio2_GetDeviceCount()
HRESULT IXAudio2_GetDeviceCount |
( |
IXAudio2 * |
unused, |
|
|
UINT32 * |
devcount |
|
) |
| |
Definition at line 32 of file SDL_xaudio2_winrthelpers.cpp.
References S_OK.
34 #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP 42 auto operation = DeviceInformation::FindAllAsync(DeviceClass::AudioRender);
43 while (operation->Status != Windows::Foundation::AsyncStatus::Completed)
47 DeviceInformationCollection^
devices = operation->GetResults();
48 *devcount = devices->Size;
◆ IXAudio2_GetDeviceDetails()
Definition at line 53 of file SDL_xaudio2_winrthelpers.cpp.
References d, XAUDIO2_DEVICE_DETAILS::DeviceID, XAUDIO2_DEVICE_DETAILS::DisplayName, and S_OK.
55 #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP 61 return XAUDIO2_E_INVALID_CALL;
66 wcsncpy_s(details->
DeviceID, ARRAYSIZE(details->
DeviceID), L
"default", _TRUNCATE);
71 auto operation = DeviceInformation::FindAllAsync(DeviceClass::AudioRender);
72 while (operation->Status != Windows::Foundation::AsyncStatus::Completed)
76 DeviceInformationCollection^
devices = operation->GetResults();
77 if (
index >= devices->Size)
79 return XAUDIO2_E_INVALID_CALL;
82 DeviceInformation^
d = devices->GetAt(
index);
85 wcsncpy_s(details->
DeviceID, ARRAYSIZE(details->
DeviceID), d->Id->Data(), _TRUNCATE);
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 ** d