*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
/** \file fade.c a volume fader and alarm clock */
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
/** \file fade.c a volume fader and alarm clock */
{
int ret, fds[3] = {0, 0, 0};
pid_t pid;
{
int ret, fds[3] = {0, 0, 0};
pid_t pid;
PARA_INFO_LOG("%s\n", cmdline);
ret = para_exec_cmdline_pid(&pid, cmdline, fds);
free(cmdline);
PARA_INFO_LOG("%s\n", cmdline);
ret = para_exec_cmdline_pid(&pid, cmdline, fds);
free(cmdline);
- char *fa_stream = conf.fa_stream_arg;
- char *wake_stream = conf.wake_stream_arg;
- //char *current_stream = stat_items[STREAM].content;
+ char *fa_mode = conf.fa_mode_arg;
+ char *wake_mode = conf.wake_mode_arg;
+ char *sleep_mode = conf.sleep_mode_arg;
int wf = conf.wake_fade_arg;
int sf = conf.fa_fade_arg;
int wv = conf.wake_vol_arg;
int sv = conf.fa_vol_arg;
int iv = conf.sleep_ivol_arg;
int wf = conf.wake_fade_arg;
int sf = conf.fa_fade_arg;
int wv = conf.wake_vol_arg;
int sv = conf.fa_vol_arg;
int iv = conf.sleep_ivol_arg;
PARA_INFO_LOG("default wake time: %lu\n", t1);
tm = localtime(&t1);
}
wake_time_epoch = mktime(tm);
PARA_INFO_LOG("waketime: %s", asctime(tm));
PARA_INFO_LOG("default wake time: %lu\n", t1);
tm = localtime(&t1);
}
wake_time_epoch = mktime(tm);
PARA_INFO_LOG("waketime: %s", asctime(tm));
break;
delay = wake_time_epoch - t1 - wf;
PARA_INFO_LOG("sleeping %u seconds (%u:%02u)\n",
break;
delay = wake_time_epoch - t1 - wf;
PARA_INFO_LOG("sleeping %u seconds (%u:%02u)\n",