AJA NTV2 SDK  18.0.0.2122
NTV2 SDK 18.0.0.2122
ntv2audio.cpp File Reference

Implementations of audio-centric CNTV2Card methods. More...

#include "ntv2card.h"
#include "ntv2devicefeatures.h"
#include "ntv2utils.h"
#include "ntv2audiodefines.h"
#include "ajabase/common/common.h"
#include "ajabase/system/debug.h"
Include dependency graph for ntv2audio.cpp:

Go to the source code of this file.

Classes

struct  PCM_CONTROL_INFO
 

Macros

#define AUDFAIL(__x__)   AJA_sERROR (AJA_DebugUnit_AudioGeneric, " " << HEX0N(uint64_t(this),16) << "::" << AJAFUNC << ": " << __x__)
 
#define AUDWARN(__x__)   AJA_sWARNING(AJA_DebugUnit_AudioGeneric, " " << HEX0N(uint64_t(this),16) << "::" << AJAFUNC << ": " << __x__)
 
#define AUDNOTE(__x__)   AJA_sNOTICE (AJA_DebugUnit_AudioGeneric, " " << HEX0N(uint64_t(this),16) << "::" << AJAFUNC << ": " << __x__)
 
#define AUDINFO(__x__)   AJA_sINFO (AJA_DebugUnit_AudioGeneric, " " << HEX0N(uint64_t(this),16) << "::" << AJAFUNC << ": " << __x__)
 
#define AUDDBUG(__x__)   AJA_sDEBUG (AJA_DebugUnit_AudioGeneric, " " << HEX0N(uint64_t(this),16) << "::" << AJAFUNC << ": " << __x__)
 

Functions

static NTV2AudioChannelPairs BitMasksToNTV2AudioChannelPairs (const ULWord inBitMask, const ULWord inExtendedBitMask)
 
static NTV2RegisterNumber GetNonPCMDetectRegisterNumber (const NTV2Channel inSDIInputChannel, const bool inIsExtended=(0))
 

Variables

static const ULWord gAudioSystemToSrcSelectRegNum []
 
static const ULWord gChannelToAudioInLastAddrRegNum []
 
static const ULWord gChannelToAudioOutLastAddrRegNum []
 
static const ULWord gAudioPlayCaptureModeMasks []
 
static const ULWord gAudioPlayCaptureModeShifts []
 
static const ULWord gAudioDelayRegisterNumbers [] = { kRegAud1Delay, kRegAud2Delay, kRegAud3Delay, kRegAud4Delay, kRegAud5Delay, kRegAud6Delay, kRegAud7Delay, kRegAud8Delay, 0}
 
static const ULWord gAudioSystemToAudioControlRegNum []
 
static const ULWord gAudioRateHighMask []
 
static const ULWord gAudioRateHighShift []
 
static const PCM_CONTROL_INFO gAudioEngineChannelPairToFieldInformation [][8]
 
static const ULWord sAudioMixerInputSelectMasks [] = {kRegMaskAudioMixerMainInputSelect, kRegMaskAudioMixerAux1x2CHInput, kRegMaskAudioMixerAux2x2CHInput, 0}
 
static const ULWord sAudioMixerInputSelectShifts [] = {kRegShiftAudioMixerMainInputSelect, kRegShiftAudioMixerAux1x2CHInput, kRegShiftAudioMixerAux2x2CHInput, 0}
 
static const ULWord sAudioMixerInputGainCh1Regs [] = {kRegAudioMixerMainGain, kRegAudioMixerAux1GainCh1, kRegAudioMixerAux2GainCh1, 0}
 
static const ULWord sAudioMixerInputGainCh2Regs [] = {kRegAudioMixerMainGain, kRegAudioMixerAux1GainCh2, kRegAudioMixerAux2GainCh2, 0}
 
static const ULWord sAudioMixerInputMuteMasks [] = {kRegMaskAudioMixerMainInputEnable, kRegMaskAudioMixerAux1InputEnable, kRegMaskAudioMixerAux2InputEnable, 0}
 
static const ULWord sAudioMixerInputMuteShifts [] = {kRegShiftAudioMixerMainInputEnable, kRegShiftAudioMixerAux1InputEnable, kRegShiftAudioMixerAux2InputEnable, 0}
 
static const ULWord sAudioDetectRegs []
 
static const unsigned sAudioDetectGroups []
 
static const unsigned gAESChannelMappingShifts [4] = {0, 4, 8, 12}
 
static const ULWord kAudCtrlRegsForSDIOutputs []
 

Detailed Description

Implementations of audio-centric CNTV2Card methods.

Definition in file ntv2audio.cpp.

Macro Definition Documentation

◆ AUDDBUG

#define AUDDBUG (   __x__)    AJA_sDEBUG (AJA_DebugUnit_AudioGeneric, " " << HEX0N(uint64_t(this),16) << "::" << AJAFUNC << ": " << __x__)

Definition at line 25 of file ntv2audio.cpp.

◆ AUDFAIL

#define AUDFAIL (   __x__)    AJA_sERROR (AJA_DebugUnit_AudioGeneric, " " << HEX0N(uint64_t(this),16) << "::" << AJAFUNC << ": " << __x__)

Definition at line 21 of file ntv2audio.cpp.

◆ AUDINFO

#define AUDINFO (   __x__)    AJA_sINFO (AJA_DebugUnit_AudioGeneric, " " << HEX0N(uint64_t(this),16) << "::" << AJAFUNC << ": " << __x__)

Definition at line 24 of file ntv2audio.cpp.

◆ AUDNOTE

#define AUDNOTE (   __x__)    AJA_sNOTICE (AJA_DebugUnit_AudioGeneric, " " << HEX0N(uint64_t(this),16) << "::" << AJAFUNC << ": " << __x__)

Definition at line 23 of file ntv2audio.cpp.

◆ AUDWARN

#define AUDWARN (   __x__)    AJA_sWARNING(AJA_DebugUnit_AudioGeneric, " " << HEX0N(uint64_t(this),16) << "::" << AJAFUNC << ": " << __x__)

Definition at line 22 of file ntv2audio.cpp.

Function Documentation

◆ BitMasksToNTV2AudioChannelPairs()

static NTV2AudioChannelPairs BitMasksToNTV2AudioChannelPairs ( const ULWord  inBitMask,
const ULWord  inExtendedBitMask 
)
static

Definition at line 1525 of file ntv2audio.cpp.

◆ GetNonPCMDetectRegisterNumber()

static NTV2RegisterNumber GetNonPCMDetectRegisterNumber ( const NTV2Channel  inSDIInputChannel,
const bool  inIsExtended = (0) 
)
inlinestatic

Definition at line 1540 of file ntv2audio.cpp.

Variable Documentation

◆ gAESChannelMappingShifts

const unsigned gAESChannelMappingShifts[4] = {0, 4, 8, 12}
static

Definition at line 1485 of file ntv2audio.cpp.

◆ gAudioDelayRegisterNumbers

Definition at line 43 of file ntv2audio.cpp.

◆ gAudioEngineChannelPairToFieldInformation

const PCM_CONTROL_INFO gAudioEngineChannelPairToFieldInformation[][8]
static

Definition at line 61 of file ntv2audio.cpp.

◆ gAudioPlayCaptureModeMasks

◆ gAudioPlayCaptureModeShifts

◆ gAudioRateHighMask

◆ gAudioRateHighShift

◆ gAudioSystemToAudioControlRegNum

◆ gAudioSystemToSrcSelectRegNum

◆ gChannelToAudioInLastAddrRegNum

◆ gChannelToAudioOutLastAddrRegNum

◆ kAudCtrlRegsForSDIOutputs

◆ sAudioDetectGroups

const unsigned sAudioDetectGroups[]
static
Initial value:
= { 0, 1, 0, 1,
0, 1, 2, 3 }

Definition at line 1388 of file ntv2audio.cpp.

◆ sAudioDetectRegs

◆ sAudioMixerInputGainCh1Regs

const ULWord sAudioMixerInputGainCh1Regs[] = {kRegAudioMixerMainGain, kRegAudioMixerAux1GainCh1, kRegAudioMixerAux2GainCh1, 0}
static

Definition at line 601 of file ntv2audio.cpp.

◆ sAudioMixerInputGainCh2Regs

const ULWord sAudioMixerInputGainCh2Regs[] = {kRegAudioMixerMainGain, kRegAudioMixerAux1GainCh2, kRegAudioMixerAux2GainCh2, 0}
static

Definition at line 602 of file ntv2audio.cpp.

◆ sAudioMixerInputMuteMasks

Definition at line 712 of file ntv2audio.cpp.

◆ sAudioMixerInputMuteShifts

Definition at line 713 of file ntv2audio.cpp.

◆ sAudioMixerInputSelectMasks

Definition at line 545 of file ntv2audio.cpp.

◆ sAudioMixerInputSelectShifts

Definition at line 546 of file ntv2audio.cpp.