Mercurial > audlegacy-plugins
comparison src/cue/cuesheet.c @ 1365:8702f72b3382
- reduce guard time in initiating play to avoid stuttering start.
- remove DEBUG flag.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Wed, 25 Jul 2007 22:52:22 +0900 |
parents | 8916502b398c |
children | 3a2a91d80818 |
comparison
equal
deleted
inserted
replaced
1364:8916502b398c | 1365:8702f72b3382 |
---|---|
499 /* need to pass playback->output to real_ip */ | 499 /* need to pass playback->output to real_ip */ |
500 real_ip->output = data->output; | 500 real_ip->output = data->output; |
501 real_ip->data = data->data; | 501 real_ip->data = data->data; |
502 | 502 |
503 real_play_thread = g_thread_create((GThreadFunc)(real_ip->plugin->play_file), (gpointer)real_ip, TRUE, NULL); | 503 real_play_thread = g_thread_create((GThreadFunc)(real_ip->plugin->play_file), (gpointer)real_ip, TRUE, NULL); |
504 g_usleep(TRANSITION_GUARD_TIME); // XXX wait until real plugin finishes initialization. | 504 g_usleep(10000); // wait for 10msec while real input plugin is initializing. |
505 | 505 |
506 if(real_ip->plugin->mseek) { | 506 if(real_ip->plugin->mseek) { |
507 real_ip->plugin->mseek(real_ip, finetune_seek ? finetune_seek : cue_tracks[track].index); | 507 real_ip->plugin->mseek(real_ip, finetune_seek ? finetune_seek : cue_tracks[track].index); |
508 } | 508 } |
509 else | 509 else |
602 | 602 |
603 if(watchdog_state != RUN) | 603 if(watchdog_state != RUN) |
604 continue; | 604 continue; |
605 | 605 |
606 time = get_output_time(); | 606 time = get_output_time(); |
607 #if 0 | |
608 #ifdef DEBUG | |
609 printf("t = %d\n", time); | |
610 #endif | |
611 #endif | |
607 if(time == 0) | 612 if(time == 0) |
608 continue; | 613 continue; |
609 | 614 |
610 // prev track | 615 // prev track |
611 if (time < cue_tracks[cur_cue_track].index) | 616 if (time < cue_tracks[cur_cue_track].index) |