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.
46 lines
1.3 KiB
46 lines
1.3 KiB
//--------------------------------------------------------------------------;
|
|
//
|
|
// File: advaudio.h
|
|
//
|
|
// Copyright (c) 1997 Microsoft Corporation. All rights reserved
|
|
//
|
|
//
|
|
//--------------------------------------------------------------------------;
|
|
|
|
#ifndef ADVAUDIO_HEADER
|
|
#define ADVAUDIO_HEADER
|
|
|
|
typedef struct CPLDATA
|
|
{
|
|
DWORD dwHWLevel;
|
|
DWORD dwSRCLevel;
|
|
DWORD dwSpeakerConfig;
|
|
DWORD dwSpeakerType;
|
|
} CPLDATA, *LPCPLDATA;
|
|
|
|
|
|
typedef struct AUDDATA
|
|
{
|
|
GUID devGuid;
|
|
BOOL fValid;
|
|
BOOL fRecord;
|
|
DWORD waveId;
|
|
CPLDATA stored;
|
|
CPLDATA current;
|
|
DWORD dwDefaultHWLevel; // Obtain the default acceleration from DSound
|
|
} AUDDATA, *LPAUDDATA;
|
|
|
|
|
|
STDAPI_(void) AdvancedAudio(HWND hWnd, HINSTANCE hInst, const TCHAR *szHelpFile,
|
|
DWORD dwWaveId, LPTSTR szDeviceName, BOOL fRecord);
|
|
STDAPI_(void) ToggleApplyButton(HWND hWnd);
|
|
STDAPI_(void) ApplyCurrentSettings(LPAUDDATA pAD);
|
|
HRESULT CheckDSAccelerationPriv(GUID guidDevice, BOOL fRecord, HRESULT *phrGet);
|
|
HRESULT CheckDSSrcQualityPriv(GUID guidDevice, BOOL fRecord, HRESULT *phrGet);
|
|
HRESULT CheckDSSpeakerConfigPriv(GUID guidDevice, BOOL fRecord, HRESULT *phrGet);
|
|
|
|
extern AUDDATA gAudData;
|
|
extern HINSTANCE ghInst;
|
|
extern const TCHAR* gszHelpFile;
|
|
|
|
#endif // ADVAUDIO_HEADER
|