Download MPEGIO2 SDK User Manual
Transcript
Return true for success. MPEGIO2_API bool MPEGIO2_AudioInLeftRightMap(ULONG chanNum, unsigned char audioSocket, unsigned char mapping); Function: Set up the Left/Right channel mapping of a Stereo Audio Input Socket for an MPEGIO2 Channel Input Parameter chanNum: the MPEGIO2 channel number, must be between 0 ~ totalChans-1 Input Parameter audioSocket: 0 or 1, indicating which stereo audio input socket to set its left/right stereo channel mapping: 0 for "Audio 1st Input Line-In": the J13(chanNum is LeftChan)/J24(chanNum is RightChan) socket on the Breakout Box, 1 for "Audio 2nd Input Line-In": the J10(chanNum is LeftChan)/J21(chanNum is RightChan) socket on the Breakout Box. Input Parameter mapping: 4 possible mapping values: 0 : the left channle of the stereo audio input socket connects to the left channel of the MPEGIO2 audio input, and the right channle of the stereo audio input socket connects to the right channel of the MPEGIO2 audio input. 1 : the right channle of the stereo audio input socket connects to the left channel of the MPEGIO2 audio input, and the right channle of the stereo audio input socket connects to the right channel of the MPEGIO2 audio input. (The left channel of the stereo audio input socket is not used). 2 : the left channle of the stereo audio input socket connects to the left channel of the MPEGIO2 audio input, and the left channle of the stereo audio input socket connects to the right channel of the MPEGIO2 audio input. (The right channel of the stereo audio input socket is not used). 3 : the left channle of the stereo audio input socket connects to the right channel of the MPEGIO2 audio input, and the right channle of the stereo audio input socket connects to the left channel of the MPEGIO2 audio input. Return: true for succes. MPEGIO2_API bool MPEGIO2_setAudioChanGain(unsigned long chanNum, unsigned long audioChanNum, unsigned char LRB, unsigned short gain); Function: Set audio channel's input gains for an MPEGIO2 channel Input Parameter chanNum: the MPEGIO2 channel number, must be between 0 ~ totalChans-1 Input Parameter audioChanNum: must be values 0 ~ 4 : Values 0 ~ 2 represent the 3 possible audio input sources (see function MPEGIO2_AudioInputSelect): value 0 is the "1st Audio Input Source" as set by function "MPEGIO2_AudioLineInMic"; value 1 is the “Audio 2nd Input Line-In" socket on the top Layer of the Breakout Box; value 2 is the MPEG Decoding Audio Output when this channel is doing MPEG decoding; value 3 is for the MPEG decoding audio output towards external speakers, but seeting this gain also effects MPEG decoding audio heard on PC's speakers via sound card; value 4 is for audio coming from the audio output of the matching channel on the same MPEGIO2 card. Input Parameter LRB: The stereo audio’s sub-channel on which the volume is to be set: 0 = Left Sub-Channel, 1 = Right Sub-Channel, 2 = Both Left and Right Sub-Channenls Input Parameter gain: audio volume gain, 0(minimum gain - low volume) ~ 79(maximum gain - high volume) Return true for success. MPEGIO2_API bool MPEGIO2_getAudioChanGain(unsigned long chanNum, unsigned long audioChanNum, unsigned short &leftGain, unsigned short &rightGain); Function: Get audio channel's volume gains for an MPEGIO2 channel Input Parameter chanNum: the MPEGIO2 channel number, must be between 0 ~ totalChans-1 Input Parameter audioChanNum: must be values 0 ~ 4 : 0~2 are for the 3 possible audio input sources (see function MPEGIO2_AudioInputSelect): value 0 is the "1st Audio Input Source" as set by function "MPEGIO2_AudioLineInMic"; value 1 is the “Audio Loopback Output" socket; value 2 is the MPEG Decoding Audio Output when this channel is doing MPEG decoding; value 3 is for the MPEG decoding audio output towards external speakers MPEGIO2 SDK User Manual Page 36 Ver. 1.0.2