index 73294798c1d607df95aacb6015baf20601803ca8..a3058eac073cd46a5bdb3018aed2ee5f5d9d25c8 100644 (file)
+/*
+ * Copyright (c) 2017, Texas Instruments Incorporated
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
/*
* ======== main.c ========
*/
#include <ti/mas/types/types.h>
#include <ti/mas/util/ecomem.h>
-#include "components/fil.h"
-#include "components/sys.h"
+#include "../../common/components/fil.h"
+#include "../../common/components/sys.h"
/* Global System Configuration Structure */
sysConfig_t sysConfig = {
SYS_MICS_MAX, /* #microphones */
SYS_VMICS_MAX, /* #virtual microphones */
+ 5, /* 5ms ASNR delay */
+ { 12, 9, 6}, /* ASNR band1=12dB, band2=9dB, band3=6dB */
+ TRUE, /* Enable ASNR */
FALSE, /* Do not use file I/O to load files (must use GEL to load into memory) */
- TRUE /* Use default angles for microphone configurations */
+ TRUE, /* Use default angles for microphone configurations */
+ FALSE, /* Enable VAD */
+ -50, /* drc expansion knee point in dBm0 (dBFS is dBm0-3dB */
+ 6, /* drc max gain in dB */
+ FALSE /* Disable DRC */
};
/* Global FILE I/O Configuration Structure (must be configured even when file I/O not used */
/* Miocrophone input files names (in case we want to use FILE I/O to load into memory */
char *filNames[FIL_MAX] = {
- "../t8/y16L8g3m7090_1.pcm",
- "../t8/y16L8g3m7090_2.pcm",
- "../t8/y16L8g3m7090_3.pcm",
- "../t8/y16L8g3m7090_4.pcm",
- "../t8/y16L8g3m7090_5.pcm",
- "../t8/y16L8g3m7090_6.pcm",
- "../t8/y16L8g3m7090_7.pcm",
- "../t8/y16L8g3m7090_8.pcm"
+#if FIL_MAX==8
+ "../../../common/t8/y16L8g3m7090_1.pcm",
+ "../../../common/t8/y16L8g3m7090_2.pcm",
+ "../../../common/t8/y16L8g3m7090_3.pcm",
+ "../../../common/t8/y16L8g3m7090_4.pcm",
+ "../../../common/t8/y16L8g3m7090_5.pcm",
+ "../../../common/t8/y16L8g3m7090_6.pcm",
+ "../../../common/t8/y16L8g3m7090_7.pcm",
+ "../../../common/t8/y16L8g3m7090_8.pcm"
+#else
+"../../../common/t8/y16L7g3m7090_1.pcm",
+"../../../common/t8/y16L7g3m7090_2.pcm",
+"../../../common/t8/y16L7g3m7090_3.pcm",
+"../../../common/t8/y16L7g3m7090_4.pcm",
+"../../../common/t8/y16L7g3m7090_5.pcm",
+"../../../common/t8/y16L7g3m7090_6.pcm",
+"../../../common/t8/y16L7g3m7090_7.pcm",
+#endif
};
/* Acoustic environment */
sysBfCreate(); /* Create beamformers */
sysAsnrCreate(); /* Create ASNR's */
sysMssCreate(); /* Create MSS */
- sysVauCreate(); /* Create VAU */
+#if (SYS_USE_DRC)
+ sysDrcCreate(); /* Create DRC */
+#endif
+ //sysVauCreate(); /* Create VAU */
BIOS_start();