AudioScience HPI Version_4.24.1
|
The AESEBU receiver receives audio from a standard digital audio interface (AESEBU or SPDIF). More...
Enumerations | |
enum | HPI_AESEBU_ERRORS { HPI_AESEBU_ERROR_NOT_LOCKED = 0x01, HPI_AESEBU_ERROR_POOR_QUALITY = 0x02, HPI_AESEBU_ERROR_PARITY_ERROR = 0x04, HPI_AESEBU_ERROR_BIPHASE_VIOLATION = 0x08, HPI_AESEBU_ERROR_VALIDITY = 0x10, HPI_AESEBU_ERROR_CRC = 0x20 } |
AES/EBU error status bits. More... | |
Functions | |
hpi_err_t | HPI_AESEBU_Receiver_QueryFormat (const hpi_hsubsys_t *phSubSys, const hpi_handle_t hAesRx, const uint32_t dwIndex, uint16_t *pwFormat) |
query formats supported by this aesebu receiver Iterate dwIndex until an error is returned to get allowed values for aesebu format in *pwFormat | |
hpi_err_t | HPI_AESEBU_Receiver_SetFormat (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, uint16_t wFormat) |
Sets the physical format of the digital audio input to either the balanced, professional AES/EBU input or the unbalanced, consumer S/PDIF input. | |
hpi_err_t | HPI_AESEBU_Receiver_GetFormat (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, uint16_t *pwFormat) |
Gets the physical format of the digital audio input : either the balanced, professional AES/EBU input or the unbalanced, consumer S/PDIF input. | |
hpi_err_t | HPI_AESEBU_Receiver_GetSampleRate (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, uint32_t *pdwSampleRate) |
Returns the sample rate of the incoming AES/EBU digital audio stream in *pdwSampleRate. | |
hpi_err_t | HPI_AESEBU_Receiver_GetUserData (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, uint16_t wIndex, uint16_t *pwData) |
Get one of 4 userdata bytes from the AES/EBU stream. | |
hpi_err_t | HPI_AESEBU_Receiver_GetChannelStatus (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, uint16_t wIndex, uint16_t *pwData) |
Get one of 24 channel status bytes from the AES/EBU stream. | |
hpi_err_t | HPI_AESEBU_Receiver_GetErrorStatus (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, uint16_t *pwErrorData) |
Get error status from the AES/EBU stream. |
The AESEBU receiver receives audio from a standard digital audio interface (AESEBU or SPDIF).
As well as receiving the audio, status and user bits are extracted from the digital bitstream.
enum HPI_AESEBU_ERRORS |
AES/EBU error status bits.
Returned by HPI_AESEBU_Receiver_GetErrorStatus()
hpi_err_t HPI_AESEBU_Receiver_QueryFormat | ( | const hpi_hsubsys_t * | phSubSys, |
const hpi_handle_t | hAesRx, | ||
const uint32_t | dwIndex, | ||
uint16_t * | pwFormat | ||
) |
query formats supported by this aesebu receiver Iterate dwIndex until an error is returned to get allowed values for aesebu format in *pwFormat
phSubSys | Vestigial subsys handle (unused), may be set to NULL |
hAesRx | Control to query |
dwIndex | Index for possible attribute values |
pwFormat | aesebu format, one of the HPI_AESEBU_FORMATS |
References HPI_ControlQuery().
hpi_err_t HPI_AESEBU_Receiver_SetFormat | ( | const hpi_hsubsys_t * | phSubSys, |
hpi_handle_t | hControl, | ||
uint16_t | wFormat | ||
) |
Sets the physical format of the digital audio input to either the balanced, professional AES/EBU input or the unbalanced, consumer S/PDIF input.
Note that not all audio adpaters will have both kinds of inputs.
phSubSys | Vestigial subsys handle (unused), may be set to NULL |
hControl | Handle to control of type HPI_CONTROL_AESEBU_RECEIVER |
wFormat | One of the HPI_AESEBU_FORMATS |
hpi_err_t HPI_AESEBU_Receiver_GetFormat | ( | const hpi_hsubsys_t * | phSubSys, |
hpi_handle_t | hControl, | ||
uint16_t * | pwFormat | ||
) |
Gets the physical format of the digital audio input : either the balanced, professional AES/EBU input or the unbalanced, consumer S/PDIF input.
phSubSys | Vestigial subsys handle (unused), may be set to NULL |
hControl | Handle to control of type HPI_CONTROL_AESEBU_RECEIVER. |
pwFormat | current format, one of the HPI_AESEBU_FORMATS. |
hpi_err_t HPI_AESEBU_Receiver_GetSampleRate | ( | const hpi_hsubsys_t * | phSubSys, |
hpi_handle_t | hControl, | ||
uint32_t * | pdwSampleRate | ||
) |
Returns the sample rate of the incoming AES/EBU digital audio stream in *pdwSampleRate.
This information is obtained from the channel status bits in the digital audio bitstream.
HPI_ERROR_INVALID_OPERATION | if PLL unlocked. |
phSubSys | Vestigial subsys handle (unused), may be set to NULL |
hControl | Handle to control of type HPI_CONTROL_AESEBU_RECEIVER |
pdwSampleRate | samplerate 0, 32000,44100 or 48000 (or x2, x4) returned |
hpi_err_t HPI_AESEBU_Receiver_GetUserData | ( | const hpi_hsubsys_t * | phSubSys, |
hpi_handle_t | hControl, | ||
uint16_t | wIndex, | ||
uint16_t * | pwData | ||
) |
Get one of 4 userdata bytes from the AES/EBU stream.
phSubSys | Vestigial subsys handle (unused), may be set to NULL |
hControl | Handle to control of type HPI_CONTROL_AESEBU_RECEIVER. |
wIndex | byte index ranges from 0..3. |
pwData | returned user data. |
hpi_err_t HPI_AESEBU_Receiver_GetChannelStatus | ( | const hpi_hsubsys_t * | phSubSys, |
hpi_handle_t | hControl, | ||
uint16_t | wIndex, | ||
uint16_t * | pwData | ||
) |
Get one of 24 channel status bytes from the AES/EBU stream.
phSubSys | Vestigial subsys handle (unused), may be set to NULL |
hControl | Handle to control of type HPI_CONTROL_AESEBU_RECEIVER. |
wIndex | byte index ranges from 0..23. |
pwData | returned channel status data. |
hpi_err_t HPI_AESEBU_Receiver_GetErrorStatus | ( | const hpi_hsubsys_t * | phSubSys, |
hpi_handle_t | hControl, | ||
uint16_t * | pwErrorData | ||
) |
Get error status from the AES/EBU stream.
phSubSys | Vestigial subsys handle (unused), may be set to NULL |
hControl | Handle to control of type HPI_CONTROL_AESEBU_RECEIVER. |
pwErrorData | returned error status bitfields defined by HPI_AESEBU_ERRORS. |