AudRecordLib
|
Declarations for miscellaneous functions. More...
Go to the source code of this file.
Functions | |
HRESULT | CheckCOMInitialization () |
DWORD | GetCurrentTimerResolution () |
BOOL | GetWaveformatExType (const struct tWAVEFORMATEX *pwfx, BOOL *pIsFloat) |
BOOL | IsSSE2Supported () |
std::wstring | GetCurrentDateTime () |
void | SetCurrentThreadName (const char *pszThreadName) |
Declarations for miscellaneous functions.
HRESULT CheckCOMInitialization | ( | ) |
Simple check to see whether COM has been initialised for the current thread
std::wstring GetCurrentDateTime | ( | ) |
Returns the current date and time in the C locale
Calls time to get current UTC time, localtime to convert that, and then the wide strftime using the classic C locale to get the date/time string
DWORD GetCurrentTimerResolution | ( | ) |
Returns the current resolution of the system timer
The function queries the value set by timeBeginPeriod, in essence it is timeGetPeriod.
BOOL GetWaveformatExType | ( | const struct tWAVEFORMATEX * | pwfx, |
BOOL * | pIsFloat | ||
) |
Determines the validity and sample type of a WAVEFORMATEX structure
pwfx | The structure to examine | |
[out] | pIsFloat | If the function returns nonzero, this is set to nonzero if the structure describes a format with float samples, zero otherwise. |
BOOL IsSSE2Supported | ( | ) |
Deterines whether SSE2 support is present
void SetCurrentThreadName | ( | const char * | pszThreadName | ) |
Sets the name if the current thread in the Visual Studio debugger
As an exception is used to set the name, the entire thing is wrapped around an IsDebuggerPresent() check.
pszThreadName | The name of the current thread |