1 /* 2 * Copyright (C) 2015-2020 Alibaba Group Holding Limited 3 */ 4 5 #ifndef __UVOICE_CONFIG_H__ 6 #define __UVOICE_CONFIG_H__ 7 8 9 /* cache type select 10 * 0 - no cache 11 * 1 - cache to file (fs required) 12 * 2 - cache to memory 13 */ 14 #define PLAYER_CACHE_TYPE 2 15 16 #ifdef __os_linux__ 17 /* set file path for cache type 1 */ 18 #define PLAYER_CACHE_FILE_PATH "./media_cache" 19 #else 20 /* set file path for cache type 1 */ 21 #define PLAYER_CACHE_FILE_PATH "/sdcard/media_cache" 22 #endif 23 24 /* set memory size (KB) for cache type 2 */ 25 #ifdef __os_linux__ 26 #define PLAYER_CACHE_MEM_SIZE 80//10240 27 #else 28 29 #ifdef UVOICE_ON_BK7251 30 #define PLAYER_CACHE_MEM_SIZE 120 31 #else 32 33 #ifdef MUSICBOX_APP 34 #define PLAYER_CACHE_MEM_SIZE 50 35 #else 36 #define PLAYER_CACHE_MEM_SIZE 40 37 #endif 38 39 #endif 40 #endif /* __os_linux__ */ 41 42 #ifdef __os_linux__ 43 /* select directory for music download */ 44 #define PLAYER_SOURCE_DLOAD_DIR "../../../../../Music" 45 46 /* select directory for music list file */ 47 #define PLAYER_SOURCE_LIST_DIR "../../../../../Music" 48 #define PLAYER_SOURCE_LIST_NAME "source.list" 49 50 /* select directory for temporary use */ 51 #define PLAYER_LOCAL_TEMP_DIR "./temp" 52 53 #else 54 55 /* select directory for music download */ 56 #define PLAYER_SOURCE_DLOAD_DIR "/sdcard/music" 57 58 /* select directory for music list file */ 59 #define PLAYER_SOURCE_LIST_DIR "/sdcard/music" 60 #define PLAYER_SOURCE_LIST_NAME "source.list" 61 62 /* select directory for temporary use */ 63 #define PLAYER_LOCAL_TEMP_DIR "/sdcard/temp" 64 #endif 65 66 67 /* 0 - disable stere, 1 - enable stere */ 68 #if defined(STORYPLAYER_APP) || defined(VOICELOUDER_APP) 69 #define PLAYER_STERE_ENABLE 0 70 #else 71 #define PLAYER_STERE_ENABLE 1 72 #endif 73 74 75 #endif /* __UVOICE_CONFIG_H__ */ 76