Advertisement
Ham62

Untitled

Nov 26th, 2017
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.19 KB | None | 0 0
  1. #define LOG(format, ...) wprintf(format L"\n", __VA_ARGS__)
  2.  
  3. LOG(
  4.             L"-- waveOut device #%u --\n"
  5.             L"Manufacturer ID: %u\n"
  6.             L"Product ID: %u\n"
  7.             L"Version: %u.%u\n"
  8.             L"Product Name: %s\n"
  9.             L"Formats: 0x%x\n"
  10.             L"Channels: %u\n"
  11.             L"Reserved: %u\n"
  12.             L"Support: 0x%x\n"
  13.             L"%s%s%s%s%s"
  14.             ,
  15.             dev,
  16.             caps.wMid,
  17.             caps.wPid,
  18.             caps.vDriverVersion / 256, caps.vDriverVersion % 256,
  19.             caps.szPname,
  20.             caps.dwFormats,
  21.             caps.wChannels,
  22.             caps.wReserved1,
  23.             caps.dwSupport,
  24.                 ((caps.dwSupport & WAVECAPS_LRVOLUME) ?       L"\tWAVECAPS_LRVOLUME\n" :       L""),
  25.                 ((caps.dwSupport & WAVECAPS_PITCH) ?          L"\tWAVECAPS_PITCH\n" :          L""),
  26.                 ((caps.dwSupport & WAVECAPS_PLAYBACKRATE) ?   L"\tWAVECAPS_PLAYBACKRATE\n" :   L""),
  27.                 ((caps.dwSupport & WAVECAPS_VOLUME) ?         L"\tWAVECAPS_VOLUME\n" :         L""),
  28.                 ((caps.dwSupport & WAVECAPS_SAMPLEACCURATE) ? L"\tWAVECAPS_SAMPLEACCURATE\n" : L"")
  29.         );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement