comparison src/xs_config.c @ 243:0cd0c02ed6c4

Added "apply min playtime only when song-length is unknown" option.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 21 Dec 2004 16:08:03 +0000
parents 608f31f6c095
children 8aea483e9016
comparison
equal deleted inserted replaced
242:1c743dcd6d84 243:0cd0c02ed6c4
67 67
68 {CTYPE_BOOL, &xs_cfg.playMaxTimeEnable, "playMaxTimeEnable"}, 68 {CTYPE_BOOL, &xs_cfg.playMaxTimeEnable, "playMaxTimeEnable"},
69 {CTYPE_BOOL, &xs_cfg.playMaxTimeUnknown, "playMaxTimeUnknown"}, 69 {CTYPE_BOOL, &xs_cfg.playMaxTimeUnknown, "playMaxTimeUnknown"},
70 {CTYPE_INT, &xs_cfg.playMaxTime, "playMaxTime"}, 70 {CTYPE_INT, &xs_cfg.playMaxTime, "playMaxTime"},
71 {CTYPE_BOOL, &xs_cfg.playMinTimeEnable, "playMinTimeEnable"}, 71 {CTYPE_BOOL, &xs_cfg.playMinTimeEnable, "playMinTimeEnable"},
72 {CTYPE_BOOL, &xs_cfg.playMinTimeUnknown, "playMinTimeUnknown"},
72 {CTYPE_INT, &xs_cfg.playMinTime, "playMinTime"}, 73 {CTYPE_INT, &xs_cfg.playMinTime, "playMinTime"},
73 {CTYPE_BOOL, &xs_cfg.songlenDBEnable, "songlenDBEnable"}, 74 {CTYPE_BOOL, &xs_cfg.songlenDBEnable, "songlenDBEnable"},
74 {CTYPE_STR, &xs_cfg.songlenDBPath, "songlenDBPath"}, 75 {CTYPE_STR, &xs_cfg.songlenDBPath, "songlenDBPath"},
75 76
76 {CTYPE_BOOL, &xs_cfg.stilDBEnable, "stilDBEnable"}, 77 {CTYPE_BOOL, &xs_cfg.stilDBEnable, "stilDBEnable"},
120 121
121 { WTYPE_BUTTON, CTYPE_BOOL, "cfg_maxtime_enable", &xs_cfg.playMaxTimeEnable, 0 }, 122 { WTYPE_BUTTON, CTYPE_BOOL, "cfg_maxtime_enable", &xs_cfg.playMaxTimeEnable, 0 },
122 { WTYPE_BUTTON, CTYPE_BOOL, "cfg_maxtime_unknown", &xs_cfg.playMaxTimeUnknown, 0 }, 123 { WTYPE_BUTTON, CTYPE_BOOL, "cfg_maxtime_unknown", &xs_cfg.playMaxTimeUnknown, 0 },
123 { WTYPE_SPIN, CTYPE_INT, "cfg_maxtime", &xs_cfg.playMaxTime, 0 }, 124 { WTYPE_SPIN, CTYPE_INT, "cfg_maxtime", &xs_cfg.playMaxTime, 0 },
124 { WTYPE_BUTTON, CTYPE_BOOL, "cfg_mintime_enable", &xs_cfg.playMinTimeEnable, 0 }, 125 { WTYPE_BUTTON, CTYPE_BOOL, "cfg_mintime_enable", &xs_cfg.playMinTimeEnable, 0 },
126 { WTYPE_BUTTON, CTYPE_BOOL, "cfg_mintime_unknown", &xs_cfg.playMinTimeUnknown, 0 },
125 { WTYPE_SPIN, CTYPE_INT, "cfg_mintime", &xs_cfg.playMinTime, 0 }, 127 { WTYPE_SPIN, CTYPE_INT, "cfg_mintime", &xs_cfg.playMinTime, 0 },
126 { WTYPE_BUTTON, CTYPE_BOOL, "cfg_sld_enable", &xs_cfg.songlenDBEnable, 0 }, 128 { WTYPE_BUTTON, CTYPE_BOOL, "cfg_sld_enable", &xs_cfg.songlenDBEnable, 0 },
127 { WTYPE_TEXT, CTYPE_STR, "cfg_sld_dbpath", &xs_cfg.songlenDBPath, 0 }, 129 { WTYPE_TEXT, CTYPE_STR, "cfg_sld_dbpath", &xs_cfg.songlenDBPath, 0 },
128 130
129 { WTYPE_BUTTON, CTYPE_BOOL, "cfg_stil_enable", &xs_cfg.stilDBEnable, 0 }, 131 { WTYPE_BUTTON, CTYPE_BOOL, "cfg_stil_enable", &xs_cfg.stilDBEnable, 0 },
208 xs_cfg.playMaxTimeEnable = FALSE; 210 xs_cfg.playMaxTimeEnable = FALSE;
209 xs_cfg.playMaxTimeUnknown = FALSE; 211 xs_cfg.playMaxTimeUnknown = FALSE;
210 xs_cfg.playMaxTime = 150; 212 xs_cfg.playMaxTime = 150;
211 213
212 xs_cfg.playMinTimeEnable = TRUE; 214 xs_cfg.playMinTimeEnable = TRUE;
215 xs_cfg.playMinTimeUnknown = FALSE;
213 xs_cfg.playMinTime = 15; 216 xs_cfg.playMinTime = 15;
214 217
215 xs_cfg.songlenDBEnable = FALSE; 218 xs_cfg.songlenDBEnable = FALSE;
216 xs_pstrcpy(&xs_cfg.songlenDBPath, "~/C64Music/Songlengths.txt"); 219 xs_pstrcpy(&xs_cfg.songlenDBPath, "~/C64Music/Songlengths.txt");
217 220