Fix netease_voice compile error

This commit is contained in:
HuangXin 2018-08-28 14:12:25 +08:00
parent f02065eec5
commit a185006485
1 changed files with 7 additions and 7 deletions

View File

@ -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");