add HostApp20251229 gamer
This commit is contained in:
BIN
lib_ex3d/.DS_Store
vendored
Normal file
BIN
lib_ex3d/.DS_Store
vendored
Normal file
Binary file not shown.
10
lib_ex3d/Makefile
Normal file
10
lib_ex3d/Makefile
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# This variable should contain a space separated list of all
|
||||||
|
# the directories containing buildable applications (usually
|
||||||
|
# prefixed with the app_ prefix)
|
||||||
|
#
|
||||||
|
# If the variable is set to "all" then all directories that start with app_
|
||||||
|
# are built.
|
||||||
|
BUILD_SUBDIRS = all
|
||||||
|
|
||||||
|
XMOS_MAKE_PATH ?= ..
|
||||||
|
include $(XMOS_MAKE_PATH)/xcommon/module_xcommon/build/Makefile.toplevel
|
||||||
BIN
lib_ex3d/lib_ex3d/.DS_Store
vendored
BIN
lib_ex3d/lib_ex3d/.DS_Store
vendored
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -68,3 +68,9 @@ EXTERN uint8_t bEX3D_Upmix; // EX3D Upmix 유무 저장
|
|||||||
EXTERN int32_t Ex3dLimiterThreshold; // EX3D Limiter threshold 값
|
EXTERN int32_t Ex3dLimiterThreshold; // EX3D Limiter threshold 값
|
||||||
EXTERN int32_t Ex3dLimiterAttackTime; // EX3D Limiter Attack Time 값
|
EXTERN int32_t Ex3dLimiterAttackTime; // EX3D Limiter Attack Time 값
|
||||||
EXTERN int32_t Ex3dLimiterReleaseTime; // EX3D Limiter Release Time 값
|
EXTERN int32_t Ex3dLimiterReleaseTime; // EX3D Limiter Release Time 값
|
||||||
|
|
||||||
|
// dhlee++
|
||||||
|
EXTERN int32_t Ex3dExpandGain; // EX3D Expand Gain 값
|
||||||
|
EXTERN int32_t Ex3dReduceGain; // EX3D Reduce Gain 값
|
||||||
|
|
||||||
|
// dhlee--
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -200,9 +200,7 @@ void UserBufferManagement(unsigned sampsFromUsbToAudio[], unsigned sampsFromAudi
|
|||||||
chan_in_buf_word(uc_dsp_to_dnr_t1, (uint32_t *)(&ubm_micOut[0]), DSP_BLOCK_LENGTH);
|
chan_in_buf_word(uc_dsp_to_dnr_t1, (uint32_t *)(&ubm_micOut[0]), DSP_BLOCK_LENGTH);
|
||||||
chan_in_buf_word(uc_dsp_to_dnr_t1, (uint32_t *)(&ubm_micOut[1]), DSP_BLOCK_LENGTH);
|
chan_in_buf_word(uc_dsp_to_dnr_t1, (uint32_t *)(&ubm_micOut[1]), DSP_BLOCK_LENGTH);
|
||||||
#endif
|
#endif
|
||||||
}
|
} buffer_exchange(uc_eq_data, sampsFromUsbToAudio);
|
||||||
#if EQ_EN
|
|
||||||
buffer_exchange(uc_eq_data, sampsFromUsbToAudio);
|
|
||||||
#endif
|
#endif
|
||||||
sampsFromAudioToUsb[0] = sampsFromUsbToAudio[0];
|
sampsFromAudioToUsb[0] = sampsFromUsbToAudio[0];
|
||||||
sampsFromAudioToUsb[1] = sampsFromUsbToAudio[1];
|
sampsFromAudioToUsb[1] = sampsFromUsbToAudio[1];
|
||||||
@@ -232,6 +230,8 @@ typedef enum {
|
|||||||
CMD_TEST_CANCEL = 0x90,
|
CMD_TEST_CANCEL = 0x90,
|
||||||
CMD_TEST_STEP = 0x91,
|
CMD_TEST_STEP = 0x91,
|
||||||
CMD_TEST_ROTATE = 0x92,
|
CMD_TEST_ROTATE = 0x92,
|
||||||
|
CMD_EXPAND_GAIN = 0x93, // dhlee++
|
||||||
|
CMD_REDUCE_GAIN = 0x94, // dhlee++
|
||||||
} PlbkCmdCode;
|
} PlbkCmdCode;
|
||||||
|
|
||||||
#define CMD_SET(item) ((item) & ~0x0100)
|
#define CMD_SET(item) ((item) & ~0x0100)
|
||||||
@@ -554,6 +554,43 @@ void hid_receive_task_in_c(unsigned char * RcvData, unsigned * SendData)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// dhlee++
|
||||||
|
|
||||||
|
case CMD_EXPAND_GAIN:
|
||||||
|
if (CMD_SET(CMD_EXPAND_GAIN) == command_code) {
|
||||||
|
int32_t idBGain;
|
||||||
|
memcpy(&idBGain, &pRcvBuf[1], 4);
|
||||||
|
printf("Set CMD_EXPAND_GAIN : %d\r\n", idBGain);
|
||||||
|
if((0 <= idBGain) && (idBGain <= 20)) {
|
||||||
|
Ex3dExpandGain = idBGain;
|
||||||
|
EX3DAudio_SetExpandGain(Ex3dExpandGain);
|
||||||
|
} else {
|
||||||
|
pSendBuf[idx] = 0xFFFFFFFF;
|
||||||
|
}
|
||||||
|
} else { // Get
|
||||||
|
printf("Get CMD_EXPAND_GAIN : %d\r\n", Ex3dExpandGain);
|
||||||
|
memcpy(&pSendBuf[idx], &Ex3dExpandGain, 4);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case CMD_REDUCE_GAIN:
|
||||||
|
if (CMD_SET(CMD_REDUCE_GAIN) == command_code) {
|
||||||
|
int32_t idBGain;
|
||||||
|
memcpy(&idBGain, &pRcvBuf[1], 4);
|
||||||
|
printf("Set CMD_REDUCE_GAIN : %d\r\n", idBGain);
|
||||||
|
if((-20 <= idBGain) && (idBGain <= 0)) {
|
||||||
|
Ex3dReduceGain = idBGain;
|
||||||
|
EX3DAudio_SetReduceGain(Ex3dReduceGain);
|
||||||
|
} else {
|
||||||
|
pSendBuf[idx] = 0xFFFFFFFF;
|
||||||
|
}
|
||||||
|
} else { // Get
|
||||||
|
printf("Get CMD_REDUCE_GAIN : %d\r\n", Ex3dReduceGain);
|
||||||
|
memcpy(&pSendBuf[idx], &Ex3dReduceGain, 4);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user