Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.3 KiB

  1. //--------------------------------------------------------------------------;
  2. //
  3. // File: advaudio.h
  4. //
  5. // Copyright (c) 1997 Microsoft Corporation. All rights reserved
  6. //
  7. //
  8. //--------------------------------------------------------------------------;
  9. #ifndef ADVAUDIO_HEADER
  10. #define ADVAUDIO_HEADER
  11. typedef struct CPLDATA
  12. {
  13. DWORD dwHWLevel;
  14. DWORD dwSRCLevel;
  15. DWORD dwSpeakerConfig;
  16. DWORD dwSpeakerType;
  17. } CPLDATA, *LPCPLDATA;
  18. typedef struct AUDDATA
  19. {
  20. GUID devGuid;
  21. BOOL fValid;
  22. BOOL fRecord;
  23. DWORD waveId;
  24. CPLDATA stored;
  25. CPLDATA current;
  26. DWORD dwDefaultHWLevel; // Obtain the default acceleration from DSound
  27. } AUDDATA, *LPAUDDATA;
  28. STDAPI_(void) AdvancedAudio(HWND hWnd, HINSTANCE hInst, const TCHAR *szHelpFile,
  29. DWORD dwWaveId, LPTSTR szDeviceName, BOOL fRecord);
  30. STDAPI_(void) ToggleApplyButton(HWND hWnd);
  31. STDAPI_(void) ApplyCurrentSettings(LPAUDDATA pAD);
  32. HRESULT CheckDSAccelerationPriv(GUID guidDevice, BOOL fRecord, HRESULT *phrGet);
  33. HRESULT CheckDSSrcQualityPriv(GUID guidDevice, BOOL fRecord, HRESULT *phrGet);
  34. HRESULT CheckDSSpeakerConfigPriv(GUID guidDevice, BOOL fRecord, HRESULT *phrGet);
  35. extern AUDDATA gAudData;
  36. extern HINSTANCE ghInst;
  37. extern const TCHAR* gszHelpFile;
  38. #endif // ADVAUDIO_HEADER