and --with-mad-libs
- some robustness fixes
- dymamic audio format recognition for audiod
+ - para_server: new command line option: --autoplay_delay
+ - para_audiod: new command line option: --clock_diff_count
---------------------------------------
0.2.13 (2006-07-14) "sonic convolution"
static struct timeval announce_tv;
static struct timeval data_send_barrier;
static struct timeval eof_barrier;
+static struct timeval autoplay_barrier;
extern struct misc_meta_data *mmd;
extern struct audio_file_selector selectors[];
}
free(hn);
free(home);
+ if (conf.autoplay_given) {
+ struct timeval now, tmp;
+ mmd->afs_status_flags |= AFS_PLAYING;
+ mmd->new_afs_status_flags |= AFS_PLAYING;
+ gettimeofday(&now, NULL);
+ ms2tv(conf.autoplay_delay_arg, &tmp);
+ tv_add(&now, &tmp, &autoplay_barrier);
+ }
}
static int get_file_info(int i)
return &the_timeout;
}
gettimeofday(&now, NULL);
+ if (chk_barrier("autoplay_delay", &now, &autoplay_barrier,
+ &the_timeout, 1) < 0)
+ return &the_timeout;
if (chk_barrier("eof", &now, &eof_barrier, &the_timeout, 1) < 0)
return &the_timeout;
if (chk_barrier("data send", &now, &data_send_barrier,
/* init network socket */
PARA_NOTICE_LOG("%s", "initializing tcp command socket\n");
sockfd = init_network();
- if (conf.autoplay_given) {
- mmd->afs_status_flags |= AFS_PLAYING;
- mmd->new_afs_status_flags |= AFS_PLAYING;
- }
PARA_NOTICE_LOG("%s", "init complete\n");
return sockfd;
}
flag off
+option "autoplay_delay" -
+#~~~~~~~~~~~~~~~~~~~~~~~~
+"Time to wait before autoplay starts. Ignored if
+autoplay is off."
+ int typestr="milliseconds"
+ default="0"
+ optional
+
+
option "announce_time" A
#~~~~~~~~~~~~~~~~~~~~~~~