11
Appendix A – Programming the Multi-ensemble DAB+ Radcap 3
If the operation fails the return value is FALSE. To get extended error
information, call GetLastError ().
Comments
If this function returns FALSE or if the status is ServiceStatusLost, the
application should immediately cease any recording operations, close
any open waveIn handle on this device and call
CloseHandle
to close
hDev.
A status value of
ServiceStatusAbsent
typically indicates a momentary
loss of signal.
A status value of
ServiceStatusPresent
indicates that the signal is being
correctly received.
UINT __stdcall DabRadcapGetUncorrectedErrorCount
(
HANDLE hDev );
Parameters
hDev
Handle returned by DabRadcapOpen.
Return value
The function returns the number of uncorrected errors since the
stream was opened.
BOOL __stdcall DabRadcapGetDateTime
(
HANDLE hDev,
DABDateTimeInfo *pDateTime );
Parameters
hDev
Handle returned by
DabRadcapOpen
.
pDateTime
Pointer to a DABDateTimeInfo structure into which the current UTC
and local time is to be written.
Return values
If the function succeeds the return value is TRUE.
If the operation fails the return value is FALSE. To get extended error
information, call GetLastError ().
BOOL __stdcall DabRadcapGetFormat
(
HANDLE hDev,
DABFormat *pFormat );
Parameters
hDev
Handle returned by
DabRadcapOpen
.
pFormat
Pointer to a DABFormat structure into which the current audio
format parameters are written.
Return values
If the function succeeds the return value is TRUE.
If the operation fails the return value is FALSE. To get extended error
information, call GetLastError ().
Comments
The audio stream must be open and running in order to receive
DABFormat data, otherwise this call will fail and
GetLastError
will
return ERROR_NOT_READY.