diff --git a/package/netease/netease_voice/src/main.c b/package/netease/netease_voice/src/main.c index e4ee4f324..292c3848b 100644 --- a/package/netease/netease_voice/src/main.c +++ b/package/netease/netease_voice/src/main.c @@ -100,11 +100,6 @@ static long parse_long(const char *str, int *err) return val; } -#if USED_NETEASE_DC -static struct kfifo g_AudioCacheBuf; -// static DECLARE_KFIFO(g_AudioCacheBuf, unsigned char, WAKE_CACHE_DATA_SIZE); -static unsigned char g_AudioCache[WAKE_CACHE_DATA_SIZE]; - static void debug_waste_time(char *where, unsigned long long *tm) { #ifdef DEBUG_WASTE_TIME long long tmp = Netease_caltime(tm, 1); @@ -114,6 +109,11 @@ static void debug_waste_time(char *where, unsigned long long *tm) { #endif } +#if USED_NETEASE_DC +static struct kfifo g_AudioCacheBuf; +// static DECLARE_KFIFO(g_AudioCacheBuf, unsigned char, WAKE_CACHE_DATA_SIZE); +static unsigned char g_AudioCache[WAKE_CACHE_DATA_SIZE]; + static void __cacheCAEAudio(unsigned char *pBuf, unsigned int iSize) { int leftSize = kfifo_avail(&g_AudioCacheBuf); @@ -738,9 +738,9 @@ void main(int argc, char **argv) { #endif SRCWsCreat(); - +#if USED_NETEASE_DC DCCreat(); - +#endif ret = Netease_IAT_Init(); if (NETEASE_SUCCESS == ret) { n_debug("IAT init success!\n");