Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 76364
Collapse All | Expand All

(-)TiMidity++-2.13.2/interface/alsaseq_c.c (-4 / +5 lines)
Lines 177-183 Link Here
177
static int ctl_read(int32 *valp);
177
static int ctl_read(int32 *valp);
178
static int cmsg(int type, int verbosity_level, char *fmt, ...);
178
static int cmsg(int type, int verbosity_level, char *fmt, ...);
179
static void ctl_event(CtlEvent *e);
179
static void ctl_event(CtlEvent *e);
180
static void ctl_pass_playing_list(int n, char *args[]);
180
static int ctl_pass_playing_list(int n, char *args[]);
181
181
182
/**********************************/
182
/**********************************/
183
/* export the interface functions */
183
/* export the interface functions */
Lines 308-314 Link Here
308
        return 0;
308
        return 0;
309
}
309
}
310
310
311
static void ctl_pass_playing_list(int n, char *args[])
311
static int ctl_pass_playing_list(int n, char *args[])
312
{
312
{
313
	double btime;
313
	double btime;
314
	int i, j;
314
	int i, j;
Lines 323-329 Link Here
323
323
324
	if (alsa_seq_open(&alsactx.handle) < 0) {
324
	if (alsa_seq_open(&alsactx.handle) < 0) {
325
		fprintf(stderr, "error in snd_seq_open\n");
325
		fprintf(stderr, "error in snd_seq_open\n");
326
		return;
326
		return 1;
327
	}
327
	}
328
	alsactx.queue = -1;
328
	alsactx.queue = -1;
329
	alsactx.client = snd_seq_client_id(alsactx.handle);
329
	alsactx.client = snd_seq_client_id(alsactx.handle);
Lines 342-348 Link Here
342
		int port;
342
		int port;
343
		port = alsa_create_port(alsactx.handle, i);
343
		port = alsa_create_port(alsactx.handle, i);
344
		if (port < 0)
344
		if (port < 0)
345
			return;
345
			return 1;
346
		alsactx.port[i] = port;
346
		alsactx.port[i] = port;
347
		alsa_set_timestamping(&alsactx, port);
347
		alsa_set_timestamping(&alsactx, port);
348
		printf(" %d:%d", alsactx.client, alsactx.port[i]);
348
		printf(" %d:%d", alsactx.client, alsactx.port[i]);
Lines 411-416 Link Here
411
		server_reset();
411
		server_reset();
412
		doit(&alsactx);
412
		doit(&alsactx);
413
	}
413
	}
414
	return 0;
414
}
415
}
415
416
416
/*
417
/*
(-)TiMidity++-2.13.2/interface/emacs_c.c (-5 / +5 lines)
Lines 78-84 Link Here
78
static void ctl_close(void);
78
static void ctl_close(void);
79
static int ctl_read(int32 *valp);
79
static int ctl_read(int32 *valp);
80
static int cmsg(int type, int verbosity_level, char *fmt, ...);
80
static int cmsg(int type, int verbosity_level, char *fmt, ...);
81
static void ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
81
static int ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
82
static void ctl_event(CtlEvent *e);
82
static void ctl_event(CtlEvent *e);
83
static int read_ready(void);
83
static int read_ready(void);
84
static int emacs_type = 0; /* 0:emacs, 1:mule, 2:??
84
static int emacs_type = 0; /* 0:emacs, 1:mule, 2:??
Lines 249-255 Link Here
249
    return s;
249
    return s;
250
}
250
}
251
251
252
static void ctl_pass_playing_list(int argc, char *argv[])
252
static int ctl_pass_playing_list(int argc, char *argv[])
253
{
253
{
254
    int i;
254
    int i;
255
    char cmd[BUFSIZ];
255
    char cmd[BUFSIZ];
Lines 274-280 Link Here
274
    {
274
    {
275
	for(i = 1; i < argc; i++)
275
	for(i = 1; i < argc; i++)
276
	    play_midi_file(argv[i]);
276
	    play_midi_file(argv[i]);
277
	return;
277
	return 0;
278
    }
278
    }
279
279
280
    /* Main Loop */
280
    /* Main Loop */
Lines 296-306 Link Here
296
		ctl_refresh();
296
		ctl_refresh();
297
		break;
297
		break;
298
	      case RC_QUIT:
298
	      case RC_QUIT:
299
		return;
299
		return 0;
300
	    } /* skipping others command */
300
	    } /* skipping others command */
301
	}
301
	}
302
	else if(!strncmp(cmd, "QUIT", 4))
302
	else if(!strncmp(cmd, "QUIT", 4))
303
	    return;
303
	    return 0;
304
	else
304
	else
305
	    continue; /* skipping unknown command */
305
	    continue; /* skipping unknown command */
306
    }
306
    }
(-)TiMidity++-2.13.2/interface/gtk_c.c (-3 / +4 lines)
Lines 57-63 Link Here
57
57
58
static int ctl_open(int using_stdin, int using_stdout);
58
static int ctl_open(int using_stdin, int using_stdout);
59
static void ctl_close(void);
59
static void ctl_close(void);
60
static void ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
60
static int ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
61
static int ctl_read(int32 *valp);
61
static int ctl_read(int32 *valp);
62
static int cmsg(int type, int verbosity_level, char *fmt, ...);
62
static int cmsg(int type, int verbosity_level, char *fmt, ...);
63
static void ctl_event(CtlEvent *e);
63
static void ctl_event(CtlEvent *e);
Lines 528-534 Link Here
528
#endif
528
#endif
529
}
529
}
530
530
531
static void
531
static int 
532
ctl_pass_playing_list(int number_of_files, char *list_of_files[])
532
ctl_pass_playing_list(int number_of_files, char *list_of_files[])
533
{
533
{
534
    int i=0;
534
    int i=0;
Lines 558-564 Link Here
558
	}
558
	}
559
	else {
559
	else {
560
	    if (command==RC_QUIT)
560
	    if (command==RC_QUIT)
561
		return;
561
		return 0;
562
	    if (command==RC_ERROR)
562
	    if (command==RC_ERROR)
563
		command=RC_TUNE_END; /* Launch next file */
563
		command=RC_TUNE_END; /* Launch next file */
564
	    
564
	    
Lines 580-585 Link Here
580
	    command = ctl_blocking_read(&val);
580
	    command = ctl_blocking_read(&val);
581
	}
581
	}
582
    }
582
    }
583
    return 0;
583
}
584
}
584
585
585
/*
586
/*
(-)TiMidity++-2.13.2/interface/mac_c.c (-2 / +3 lines)
Lines 71-77 Link Here
71
static void ctl_pitch_bend(int channel, int val);
71
static void ctl_pitch_bend(int channel, int val);
72
static void ctl_reset(void);
72
static void ctl_reset(void);
73
static int ctl_open(int using_stdin, int using_stdout);
73
static int ctl_open(int using_stdin, int using_stdout);
74
static void ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
74
static int ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
75
static void ctl_close(void);
75
static void ctl_close(void);
76
static int ctl_read(int32 *valp);
76
static int ctl_read(int32 *valp);
77
static int cmsg(int type, int verbosity_level, char *fmt, ...);
77
static int cmsg(int type, int verbosity_level, char *fmt, ...);
Lines 955-961 Link Here
955
}
955
}
956
956
957
957
958
static void ctl_pass_playing_list(int init_number_of_files,
958
static int ctl_pass_playing_list(int init_number_of_files,
959
				  char * /*init_list_of_files*/ [])
959
				  char * /*init_list_of_files*/ [])
960
{
960
{
961
	EventRecord	event;
961
	EventRecord	event;
Lines 983-988 Link Here
983
		mac_HandleEvent(&event);
983
		mac_HandleEvent(&event);
984
	}	
984
	}	
985
	Do_Quit();
985
	Do_Quit();
986
	return 0;
986
}
987
}
987
988
988
static Boolean UserWantsControl()
989
static Boolean UserWantsControl()
(-)TiMidity++-2.13.2/interface/motif_c.c (-3 / +6 lines)
Lines 60-66 Link Here
60
static void ctl_close(void);
60
static void ctl_close(void);
61
static int ctl_read(int32 *valp);
61
static int ctl_read(int32 *valp);
62
static int cmsg(int type, int verbosity_level, char *fmt, ...);
62
static int cmsg(int type, int verbosity_level, char *fmt, ...);
63
static void ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
63
static int ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
64
static void ctl_event(CtlEvent *e);
64
static void ctl_event(CtlEvent *e);
65
65
66
static int motif_ready = 0;
66
static int motif_ready = 0;
Lines 346-357 Link Here
346
  return(ctl_blocking_read(valp));
346
  return(ctl_blocking_read(valp));
347
}
347
}
348
348
349
static void ctl_pass_playing_list(int number_of_files, char *list_of_files[])
349
static int ctl_pass_playing_list(int number_of_files, char *list_of_files[])
350
{
350
{
351
    int i=0;
351
    int i=0;
352
    char file_to_play[1000];
352
    char file_to_play[1000];
353
    int command;
353
    int command;
354
    int32 val;
354
    int32 val;
355
    int retval;
355
356
356
    motif_ready = 1;
357
    motif_ready = 1;
357
358
Lines 381-392 Link Here
381
	    else
382
	    else
382
		{
383
		{
383
		    if (command==RC_QUIT)
384
		    if (command==RC_QUIT)
384
			return;
385
			return 0;
385
386
386
		    switch(command)
387
		    switch(command)
387
			{
388
			{
388
			case RC_ERROR:
389
			case RC_ERROR:
389
			    m_pipe_int_write(ERROR_MESSAGE);
390
			    m_pipe_int_write(ERROR_MESSAGE);
391
			    retval=1;
390
			    break;
392
			    break;
391
			case RC_NONE:
393
			case RC_NONE:
392
			    break;
394
			    break;
Lines 411-416 Link Here
411
		    command = ctl_blocking_read(&val);
413
		    command = ctl_blocking_read(&val);
412
		}
414
		}
413
	}
415
	}
416
    return retval;
414
}
417
}
415
418
416
/*
419
/*
(-)TiMidity++-2.13.2/interface/ncurs_c.c (-5 / +5 lines)
Lines 174-180 Link Here
174
174
175
static int ctl_open(int using_stdin, int using_stdout);
175
static int ctl_open(int using_stdin, int using_stdout);
176
static void ctl_close(void);
176
static void ctl_close(void);
177
static void ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
177
static int ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
178
static int ctl_read(int32 *valp);
178
static int ctl_read(int32 *valp);
179
static int cmsg(int type, int verbosity_level, char *fmt, ...);
179
static int cmsg(int type, int verbosity_level, char *fmt, ...);
180
static void ctl_event(CtlEvent *e);
180
static void ctl_event(CtlEvent *e);
Lines 3100-3106 Link Here
3100
    reuse_mblock(&tmpbuffer);
3100
    reuse_mblock(&tmpbuffer);
3101
}
3101
}
3102
3102
3103
static void ctl_pass_playing_list(int number_of_files, char *list_of_files[])
3103
static int ctl_pass_playing_list(int number_of_files, char *list_of_files[])
3104
{
3104
{
3105
    int i;
3105
    int i;
3106
    int act_number_of_files;
3106
    int act_number_of_files;
Lines 3128-3134 Link Here
3128
3128
3129
    if (file_list.number<0) {
3129
    if (file_list.number<0) {
3130
      cmsg(CMSG_FATAL, VERB_NORMAL, "No MIDI file to play!");
3130
      cmsg(CMSG_FATAL, VERB_NORMAL, "No MIDI file to play!");
3131
      return;
3131
      return 1;
3132
    }
3132
    }
3133
3133
3134
    ctl_listmode_max=1;
3134
    ctl_listmode_max=1;
Lines 3169-3175 Link Here
3169
		    if(!(ctl.flags & CTLF_LIST_LOOP) || stdin_check)
3169
		    if(!(ctl.flags & CTLF_LIST_LOOP) || stdin_check)
3170
		    {
3170
		    {
3171
			aq_flush(0);
3171
			aq_flush(0);
3172
			return;
3172
			return 0;
3173
		    }
3173
		    }
3174
		    i = 0;
3174
		    i = 0;
3175
		    if(rc == RC_TUNE_END)
3175
		    if(rc == RC_TUNE_END)
Lines 3187-3193 Link Here
3187
3187
3188
		/* else fall through */
3188
		/* else fall through */
3189
	    case RC_QUIT:
3189
	    case RC_QUIT:
3190
		return;
3190
		return 0;
3191
	    }
3191
	    }
3192
	  ctl_reset();
3192
	  ctl_reset();
3193
	}
3193
	}
(-)TiMidity++-2.13.2/interface/portmidisyn_c.c (-10 / +6 lines)
Lines 96-102 Link Here
96
static int ctl_read(int32 *valp);
96
static int ctl_read(int32 *valp);
97
static int cmsg(int type, int verbosity_level, char *fmt, ...);
97
static int cmsg(int type, int verbosity_level, char *fmt, ...);
98
static void ctl_event(CtlEvent *e);
98
static void ctl_event(CtlEvent *e);
99
static void ctl_pass_playing_list(int n, char *args[]);
99
static int ctl_pass_playing_list(int n, char *args[]);
100
100
101
#ifndef __W32__
101
#ifndef __W32__
102
static void init_keybord(void);
102
static void init_keybord(void);
Lines 215-231 Link Here
215
215
216
#ifdef IA_W32G_SYN
216
#ifdef IA_W32G_SYN
217
extern void w32g_syn_doit(void);
217
extern void w32g_syn_doit(void);
218
extern void w32g_syn_ctl_pass_playing_list(int n_, char *args_[]);
218
extern int w32g_syn_ctl_pass_playing_list(int n_, char *args_[]);
219
219
220
220
221
static void ctl_pass_playing_list(int n, char *args[])
221
static int ctl_pass_playing_list(int n, char *args[])
222
{
222
{
223
	w32g_syn_ctl_pass_playing_list ( n, args );
223
	return w32g_syn_ctl_pass_playing_list ( n, args );
224
}
224
}
225
#endif
225
#endif
226
226
227
#ifndef IA_W32G_SYN
227
#ifndef IA_W32G_SYN
228
static void ctl_pass_playing_list(int n, char *args[])
228
static int ctl_pass_playing_list(int n, char *args[])
229
#else
229
#else
230
// 0: OK, 2: Require to reset.
230
// 0: OK, 2: Require to reset.
231
int ctl_pass_playing_list2(int n, char *args[])
231
int ctl_pass_playing_list2(int n, char *args[])
Lines 241-247 Link Here
241
#ifndef IA_W32G_SYN
241
#ifndef IA_W32G_SYN
242
	if(n > MAX_PORT ){
242
	if(n > MAX_PORT ){
243
		printf( "Usage: timidity -iW [Midi interface No s]\n");
243
		printf( "Usage: timidity -iW [Midi interface No s]\n");
244
		return;
244
		return 1;
245
	}
245
	}
246
#endif
246
#endif
247
247
Lines 347-357 Link Here
347
#endif /* USE_GTK_GUI */
347
#endif /* USE_GTK_GUI */
348
	rtsyn_close();
348
	rtsyn_close();
349
349
350
#ifdef IA_W32G_SYN
351
	return 0;
350
	return 0;
352
#else
353
	return;
354
#endif
355
}
351
}
356
352
357
353
(-)TiMidity++-2.13.2/interface/server_c.c (-5 / +6 lines)
Lines 176-182 Link Here
176
static int ctl_read(int32 *valp);
176
static int ctl_read(int32 *valp);
177
static int cmsg(int type, int verbosity_level, char *fmt, ...);
177
static int cmsg(int type, int verbosity_level, char *fmt, ...);
178
static void ctl_event(CtlEvent *e);
178
static void ctl_event(CtlEvent *e);
179
static void ctl_pass_playing_list(int n, char *args[]);
179
static int ctl_pass_playing_list(int n, char *args[]);
180
180
181
/**********************************/
181
/**********************************/
182
/* export the interface functions */
182
/* export the interface functions */
Lines 356-369 Link Here
356
static void compute_sample_increment(void);
356
static void compute_sample_increment(void);
357
static void server_reset(void);
357
static void server_reset(void);
358
358
359
static void ctl_pass_playing_list(int n, char *args[])
359
static int ctl_pass_playing_list(int n, char *args[])
360
{
360
{
361
    int sock;
361
    int sock;
362
362
363
    if(n != 2 && n != 1)
363
    if(n != 2 && n != 1)
364
    {
364
    {
365
	fprintf(stderr, "Usage: timidity -ir control-port [data-port]\n");
365
	fprintf(stderr, "Usage: timidity -ir control-port [data-port]\n");
366
	return;
366
	return 1;
367
    }
367
    }
368
368
369
#ifdef SIGPIPE
369
#ifdef SIGPIPE
Lines 379-385 Link Here
379
    if (control_port) {
379
    if (control_port) {
380
	sock = pasv_open(&control_port);
380
	sock = pasv_open(&control_port);
381
	if(sock == -1)
381
	if(sock == -1)
382
	    return;
382
	    return 1;
383
    }
383
    }
384
    opt_realtime_playing = 1; /* Enable loading patch while playing */
384
    opt_realtime_playing = 1; /* Enable loading patch while playing */
385
    allocate_cache_size = 0; /* Don't use pre-calclated samples */
385
    allocate_cache_size = 0; /* Don't use pre-calclated samples */
Lines 404-410 Link Here
404
		    continue;
404
		    continue;
405
		perror("accept");
405
		perror("accept");
406
		close(sock);
406
		close(sock);
407
		return;
407
		return 1;
408
	    }
408
	    }
409
	}
409
	}
410
	else control_fd = 0;
410
	else control_fd = 0;
Lines 446-451 Link Here
446
	if (!control_port)
446
	if (!control_port)
447
	    break;
447
	    break;
448
    }
448
    }
449
    return 0;
449
}
450
}
450
451
451
#define MAX_GETCMD_PARAMS 8
452
#define MAX_GETCMD_PARAMS 8
(-)TiMidity++-2.13.2/interface/tk_c.c (-3 / +4 lines)
Lines 86-92 Link Here
86
static void ctl_close(void);
86
static void ctl_close(void);
87
static int ctl_read(int32 *valp);
87
static int ctl_read(int32 *valp);
88
static int cmsg(int type, int verbosity_level, char *fmt, ...);
88
static int cmsg(int type, int verbosity_level, char *fmt, ...);
89
static void ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
89
static int ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
90
static int ctl_blocking_read(int32 *valp);
90
static int ctl_blocking_read(int32 *valp);
91
static void ctl_note(int status, int ch, int note, int vel);
91
static void ctl_note(int status, int ch, int note, int vel);
92
static void ctl_event(CtlEvent *e);
92
static void ctl_event(CtlEvent *e);
Lines 587-593 Link Here
587
	return(ctl_blocking_read(valp));
587
	return(ctl_blocking_read(valp));
588
}
588
}
589
589
590
static void ctl_pass_playing_list(int number_of_files, char *list_of_files[])
590
static int ctl_pass_playing_list(int number_of_files, char *list_of_files[])
591
{
591
{
592
	int i=0;
592
	int i=0;
593
	char local[1000];
593
	char local[1000];
Lines 618-624 Link Here
618
				/* if really QUIT */
618
				/* if really QUIT */
619
				k_pipe_gets(local, sizeof(local)-1);
619
				k_pipe_gets(local, sizeof(local)-1);
620
				if (*local == 'Z')
620
				if (*local == 'Z')
621
					return;
621
					return 0;
622
				/* only stop playing..*/
622
				/* only stop playing..*/
623
			}
623
			}
624
			if (command==RC_CHANGE_VOLUME) /* init volume */
624
			if (command==RC_CHANGE_VOLUME) /* init volume */
Lines 646-651 Link Here
646
			command = ctl_blocking_read(&val);
646
			command = ctl_blocking_read(&val);
647
		}
647
		}
648
	}
648
	}
649
	return 0;
649
}
650
}
650
651
651
652
(-)TiMidity++-2.13.2/interface/w32g_c.c (-5 / +6 lines)
Lines 86-92 Link Here
86
86
87
static int ctl_open(int using_stdin, int using_stdout);
87
static int ctl_open(int using_stdin, int using_stdout);
88
static void ctl_close(void);
88
static void ctl_close(void);
89
static void ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
89
static int ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
90
static void ctl_event(CtlEvent *e);
90
static void ctl_event(CtlEvent *e);
91
static int ctl_read(int32 *valp);
91
static int ctl_read(int32 *valp);
92
static int cmsg(int type, int verbosity_level, char *fmt, ...);
92
static int cmsg(int type, int verbosity_level, char *fmt, ...);
Lines 662-668 Link Here
662
}
662
}
663
663
664
extern BOOL SetWrdWndActive(void);
664
extern BOOL SetWrdWndActive(void);
665
static void ctl_pass_playing_list(int number_of_files, char *list_of_files[])
665
static int ctl_pass_playing_list(int number_of_files, char *list_of_files[])
666
{
666
{
667
	static int init_flag = 1;
667
	static int init_flag = 1;
668
    int rc;
668
    int rc;
Lines 779-785 Link Here
779
		if(ctl.flags & CTLF_AUTOEXIT) {
779
		if(ctl.flags & CTLF_AUTOEXIT) {
780
		    if(play_mode->fd != -1)
780
		    if(play_mode->fd != -1)
781
			aq_flush(0);
781
			aq_flush(0);
782
		    return;
782
		    return 0;
783
		}
783
		}
784
		break;
784
		break;
785
	    }
785
	    }
Lines 803-809 Link Here
803
		if(ctl.flags & CTLF_AUTOEXIT){
803
		if(ctl.flags & CTLF_AUTOEXIT){
804
		    if(play_mode->fd != -1)
804
		    if(play_mode->fd != -1)
805
			aq_flush(0);
805
			aq_flush(0);
806
		    return;
806
		    return 0;
807
		}
807
		}
808
		if((ctl.flags & CTLF_LIST_LOOP) && w32g_nvalid_playlist())
808
		if((ctl.flags & CTLF_LIST_LOOP) && w32g_nvalid_playlist())
809
		{
809
		{
Lines 839-845 Link Here
839
	  case RC_QUIT:
839
	  case RC_QUIT:
840
	    if(play_mode->fd != -1)
840
	    if(play_mode->fd != -1)
841
		aq_flush(1);
841
		aq_flush(1);
842
	    return;
842
	    return 0;
843
843
844
	  case RC_CHANGE_VOLUME:
844
	  case RC_CHANGE_VOLUME:
845
	    amplification += value;
845
	    amplification += value;
Lines 868-873 Link Here
868
	    PrefSettingApplyReally();
868
	    PrefSettingApplyReally();
869
	rc = RC_NONE;
869
	rc = RC_NONE;
870
    }
870
    }
871
	return 0;
871
}
872
}
872
873
873
static void ctl_lcd_mark(int flag, int x, int y)
874
static void ctl_lcd_mark(int flag, int x, int y)
(-)TiMidity++-2.13.2/interface/w32g_syn.c (-2 / +3 lines)
Lines 281-287 Link Here
281
static int wait_for_termination_of_syn_thread ( void );
281
static int wait_for_termination_of_syn_thread ( void );
282
int w32g_message_set ( int cmd );
282
int w32g_message_set ( int cmd );
283
int w32g_message_get ( w32g_syn_message_t *msg );
283
int w32g_message_get ( w32g_syn_message_t *msg );
284
void w32g_syn_ctl_pass_playing_list ( int n_, char *args_[] );
284
int w32g_syn_ctl_pass_playing_list ( int n_, char *args_[] );
285
int w32g_syn_do_before_pref_apply ( void );
285
int w32g_syn_do_before_pref_apply ( void );
286
int w32g_syn_do_after_pref_apply ( void );
286
int w32g_syn_do_after_pref_apply ( void );
287
287
Lines 1403-1409 Link Here
1403
	}
1403
	}
1404
}
1404
}
1405
1405
1406
void w32g_syn_ctl_pass_playing_list ( int n_, char *args_[] )
1406
int w32g_syn_ctl_pass_playing_list ( int n_, char *args_[] )
1407
{
1407
{
1408
	int i;
1408
	int i;
1409
#ifndef TWSYNSRV
1409
#ifndef TWSYNSRV
Lines 1471-1476 Link Here
1471
	}
1471
	}
1472
#endif
1472
#endif
1473
	if ( w32g_syn.quit_state < 2 ) w32g_syn.quit_state = 2;
1473
	if ( w32g_syn.quit_state < 2 ) w32g_syn.quit_state = 2;
1474
	return 0;
1474
}
1475
}
1475
1476
1476
int w32g_syn_do_before_pref_apply ( void )
1477
int w32g_syn_do_before_pref_apply ( void )
(-)TiMidity++-2.13.2/interface/winsyn_c.c (-10 / +6 lines)
Lines 88-94 Link Here
88
static int ctl_read(int32 *valp);
88
static int ctl_read(int32 *valp);
89
static int cmsg(int type, int verbosity_level, char *fmt, ...);
89
static int cmsg(int type, int verbosity_level, char *fmt, ...);
90
static void ctl_event(CtlEvent *e);
90
static void ctl_event(CtlEvent *e);
91
static void ctl_pass_playing_list(int n, char *args[]);
91
static int ctl_pass_playing_list(int n, char *args[]);
92
92
93
#ifndef __W32__
93
#ifndef __W32__
94
static void init_keybord(void);
94
static void init_keybord(void);
Lines 207-223 Link Here
207
207
208
#ifdef IA_W32G_SYN
208
#ifdef IA_W32G_SYN
209
extern void w32g_syn_doit(void);
209
extern void w32g_syn_doit(void);
210
extern void w32g_syn_ctl_pass_playing_list(int n_, char *args_[]);
210
extern int w32g_syn_ctl_pass_playing_list(int n_, char *args_[]);
211
211
212
212
213
static void ctl_pass_playing_list(int n, char *args[])
213
static int ctl_pass_playing_list(int n, char *args[])
214
{
214
{
215
	w32g_syn_ctl_pass_playing_list ( n, args );
215
	return w32g_syn_ctl_pass_playing_list ( n, args );
216
}
216
}
217
#endif
217
#endif
218
218
219
#ifndef IA_W32G_SYN
219
#ifndef IA_W32G_SYN
220
static void ctl_pass_playing_list(int n, char *args[])
220
static int ctl_pass_playing_list(int n, char *args[])
221
#else
221
#else
222
// 0: OK, 2: Require to reset.
222
// 0: OK, 2: Require to reset.
223
int ctl_pass_playing_list2(int n, char *args[])
223
int ctl_pass_playing_list2(int n, char *args[])
Lines 233-239 Link Here
233
#ifndef IA_W32G_SYN
233
#ifndef IA_W32G_SYN
234
	if(n > MAX_PORT ){
234
	if(n > MAX_PORT ){
235
		printf( "Usage: timidity -iW [Midi interface No s]\n");
235
		printf( "Usage: timidity -iW [Midi interface No s]\n");
236
		return;
236
		return 1;
237
	}
237
	}
238
#endif
238
#endif
239
239
Lines 339-349 Link Here
339
#endif /* USE_GTK_GUI */
339
#endif /* USE_GTK_GUI */
340
	rtsyn_close();
340
	rtsyn_close();
341
341
342
#ifdef IA_W32G_SYN
343
	return 0;
342
	return 0;
344
#else
345
	return;
346
#endif
347
}
343
}
348
344
349
345
(-)TiMidity++-2.13.2/interface/xaw_c.c (-2 / +2 lines)
Lines 55-61 Link Here
55
static void ctl_close(void);
55
static void ctl_close(void);
56
static int ctl_read(int32 *valp);
56
static int ctl_read(int32 *valp);
57
static int cmsg(int type, int verbosity_level, char *fmt, ...);
57
static int cmsg(int type, int verbosity_level, char *fmt, ...);
58
static void ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
58
static int ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
59
static void ctl_event(CtlEvent *e);
59
static void ctl_event(CtlEvent *e);
60
60
61
static void a_pipe_open(void);
61
static void a_pipe_open(void);
Lines 463-469 Link Here
463
  }
463
  }
464
}
464
}
465
465
466
static void ctl_pass_playing_list(int init_number_of_files,
466
static int ctl_pass_playing_list(int init_number_of_files,
467
                  char *init_list_of_files[]) {
467
                  char *init_list_of_files[]) {
468
  int current_no,command=RC_NONE,i,j;
468
  int current_no,command=RC_NONE,i,j;
469
  int32 val;
469
  int32 val;
(-)TiMidity++-2.13.2/interface/xskin_c.c (-3 / +4 lines)
Lines 55-61 Link Here
55
static void ctl_close(void);
55
static void ctl_close(void);
56
static int ctl_read(int32 *valp);
56
static int ctl_read(int32 *valp);
57
static int cmsg(int type, int verbosity_level, char *fmt, ...);
57
static int cmsg(int type, int verbosity_level, char *fmt, ...);
58
static void ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
58
static int ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
59
static void ctl_event(CtlEvent *e);
59
static void ctl_event(CtlEvent *e);
60
static void ctl_speana_data(double *val, int size);
60
static void ctl_speana_data(double *val, int size);
61
static void initialize_exp_hz_table( void );
61
static void initialize_exp_hz_table( void );
Lines 342-348 Link Here
342
  }
342
  }
343
}
343
}
344
344
345
static void ctl_pass_playing_list(int number_of_files, char *list_of_files[]) {
345
static int ctl_pass_playing_list(int number_of_files, char *list_of_files[]) {
346
346
347
  int current_no,command,i;
347
  int current_no,command,i;
348
  int32 val;
348
  int32 val;
Lines 403-409 Link Here
403
      command=play_midi_file(list_of_files[file_table[current_no]]);
403
      command=play_midi_file(list_of_files[file_table[current_no]]);
404
    } else {
404
    } else {
405
      /* Quit timidity*/
405
      /* Quit timidity*/
406
      if (exitflag) return;
406
      if (exitflag) return 0;
407
      /* Stop playing */
407
      /* Stop playing */
408
      if (command==RC_QUIT) {
408
      if (command==RC_QUIT) {
409
	sprintf(local_buf,"T 00:00");
409
	sprintf(local_buf,"T 00:00");
Lines 461-466 Link Here
461
      command=ctl_blocking_read(&val);
461
      command=ctl_blocking_read(&val);
462
    }
462
    }
463
  }
463
  }
464
  return 0;
464
}
465
}
465
466
466
/* ------ Pipe handlers ----- */
467
/* ------ Pipe handlers ----- */
(-)TiMidity++-2.13.2/timidity/controls.h (-1 / +1 lines)
Lines 147-153 Link Here
147
147
148
  int  (*open)(int using_stdin, int using_stdout);
148
  int  (*open)(int using_stdin, int using_stdout);
149
  void (*close)(void);
149
  void (*close)(void);
150
  void (*pass_playing_list)(int number_of_files, char *list_of_files[]);
150
  int (*pass_playing_list)(int number_of_files, char *list_of_files[]);
151
  int  (*read)(int32 *valp);
151
  int  (*read)(int32 *valp);
152
  int  (*cmsg)(int type, int verbosity_level, char *fmt, ...);
152
  int  (*cmsg)(int type, int verbosity_level, char *fmt, ...);
153
  void (*event)(CtlEvent *ev);	/* Control events */
153
  void (*event)(CtlEvent *ev);	/* Control events */
(-)TiMidity++-2.13.2/timidity/playmidi.c (-3 / +3 lines)
Lines 8562-8568 Link Here
8562
    return rc;
8562
    return rc;
8563
}
8563
}
8564
8564
8565
void dumb_pass_playing_list(int number_of_files, char *list_of_files[])
8565
int dumb_pass_playing_list(int number_of_files, char *list_of_files[])
8566
{
8566
{
8567
    #ifndef CFG_FOR_SF
8567
    #ifndef CFG_FOR_SF
8568
    int i = 0;
8568
    int i = 0;
Lines 8586-8597 Link Here
8586
	    aq_flush(0);
8586
	    aq_flush(0);
8587
8587
8588
	    if(!(ctl->flags & CTLF_LIST_LOOP))
8588
	    if(!(ctl->flags & CTLF_LIST_LOOP))
8589
		return;
8589
		return 0;
8590
	    i = 0;
8590
	    i = 0;
8591
	    break;
8591
	    break;
8592
8592
8593
	    case RC_QUIT:
8593
	    case RC_QUIT:
8594
		return;
8594
		return 0;
8595
	}
8595
	}
8596
    }
8596
    }
8597
    #endif
8597
    #endif
(-)TiMidity++-2.13.2/timidity/playmidi.h (-1 / +1 lines)
Lines 577-583 Link Here
577
extern int opt_pan_delay;
577
extern int opt_pan_delay;
578
578
579
extern int play_midi_file(char *fn);
579
extern int play_midi_file(char *fn);
580
extern void dumb_pass_playing_list(int number_of_files, char *list_of_files[]);
580
extern int dumb_pass_playing_list(int number_of_files, char *list_of_files[]);
581
extern void default_ctl_lyric(int lyricid);
581
extern void default_ctl_lyric(int lyricid);
582
extern int check_apply_control(void);
582
extern int check_apply_control(void);
583
extern void recompute_freq(int v);
583
extern void recompute_freq(int v);
(-)TiMidity++-2.13.2/timidity/sndfont.c (-1 / +1 lines)
Lines 1893-1899 Link Here
1893
1893
1894
#if CFG_FOR_SF_SUPPORT_FFT
1894
#if CFG_FOR_SF_SUPPORT_FFT
1895
int check_apply_control(void) { return 0; } // not pass
1895
int check_apply_control(void) { return 0; } // not pass
1896
void dumb_pass_playing_list(int number_of_files, char *list_of_files[]) {}
1896
int dumb_pass_playing_list(int number_of_files, char *list_of_files[]) {return 0;}
1897
void recompute_freq(int v) {} // not pass
1897
void recompute_freq(int v) {} // not pass
1898
int32 control_ratio = 0;
1898
int32 control_ratio = 0;
1899
int reduce_quality_flag = 0;
1899
int reduce_quality_flag = 0;
(-)TiMidity++-2.13.2/timidity/timidity.c (-2 / +3 lines)
Lines 5291-5296 Link Here
5291
    int need_stdin = 0, need_stdout = 0;
5291
    int need_stdin = 0, need_stdout = 0;
5292
    int i;
5292
    int i;
5293
    int output_fail = 0;
5293
    int output_fail = 0;
5294
    int retval;
5294
5295
5295
    if(nfiles == 0 && !strchr(INTERACTIVE_INTERFACE_IDS, ctl->id_character))
5296
    if(nfiles == 0 && !strchr(INTERACTIVE_INTERFACE_IDS, ctl->id_character))
5296
	return 0;
5297
	return 0;
Lines 5410-5416 Link Here
5410
	ctl->cmsg(CMSG_INFO, VERB_DEBUG_SILLY,
5411
	ctl->cmsg(CMSG_INFO, VERB_DEBUG_SILLY,
5411
		  "pass_playing_list() nfiles=%d", nfiles);
5412
		  "pass_playing_list() nfiles=%d", nfiles);
5412
5413
5413
	ctl->pass_playing_list(nfiles, files);
5414
	retval=ctl->pass_playing_list(nfiles, files);
5414
5415
5415
	if(intr)
5416
	if(intr)
5416
	    aq_flush(1);
5417
	    aq_flush(1);
Lines 5451-5457 Link Here
5451
    url_news_connection_cache(URL_NEWS_CLOSE_CACHE);
5452
    url_news_connection_cache(URL_NEWS_CLOSE_CACHE);
5452
#endif /* SUPPORT_SOCKET */
5453
#endif /* SUPPORT_SOCKET */
5453
5454
5454
    return 0;
5455
    return retval;
5455
}
5456
}
5456
5457
5457
#ifdef IA_W32GUI
5458
#ifdef IA_W32GUI

Return to bug 76364