Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/timidity++/2.13.2: 01_all_exiterror.patch 02_all_gtk26.patch 03_all_gcc4.patch 04_all_flac.patch 05_all_protos.patch 06_all_params.patch 07_all_speex.patch 08_all_Wimplicit-function-declaration.patch series
Date: Mon, 03 May 2010 21:07:35
Message-Id: 20100503210728.DAA1A2C397@corvid.gentoo.org
1 ssuominen 10/05/03 21:07:28
2
3 Added: 01_all_exiterror.patch 02_all_gtk26.patch
4 03_all_gcc4.patch 04_all_flac.patch
5 05_all_protos.patch 06_all_params.patch
6 07_all_speex.patch
7 08_all_Wimplicit-function-declaration.patch series
8 Log:
9 Import initial timidity++ patchset, might need a bit cleaning up still
10
11 Revision Changes Path
12 1.1 src/patchsets/timidity++/2.13.2/01_all_exiterror.patch
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/timidity++/2.13.2/01_all_exiterror.patch?rev=1.1&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/timidity++/2.13.2/01_all_exiterror.patch?rev=1.1&content-type=text/plain
16
17 Index: 01_all_exiterror.patch
18 ===================================================================
19 diff -ur TiMidity++-2.13.2/interface/alsaseq_c.c TiMidity++-2.13.2-new/interface/alsaseq_c.c
20 --- TiMidity++-2.13.2/interface/alsaseq_c.c 2005-01-02 02:53:01.000000000 +0100
21 +++ TiMidity++-2.13.2-new/interface/alsaseq_c.c 2005-01-02 03:39:15.968158520 +0100
22 @@ -177,7 +177,7 @@
23 static int ctl_read(int32 *valp);
24 static int cmsg(int type, int verbosity_level, char *fmt, ...);
25 static void ctl_event(CtlEvent *e);
26 -static void ctl_pass_playing_list(int n, char *args[]);
27 +static int ctl_pass_playing_list(int n, char *args[]);
28
29 /**********************************/
30 /* export the interface functions */
31 @@ -308,7 +308,7 @@
32 return 0;
33 }
34
35 -static void ctl_pass_playing_list(int n, char *args[])
36 +static int ctl_pass_playing_list(int n, char *args[])
37 {
38 double btime;
39 int i, j;
40 @@ -323,7 +323,7 @@
41
42 if (alsa_seq_open(&alsactx.handle) < 0) {
43 fprintf(stderr, "error in snd_seq_open\n");
44 - return;
45 + return 1;
46 }
47 alsactx.queue = -1;
48 alsactx.client = snd_seq_client_id(alsactx.handle);
49 @@ -342,7 +342,7 @@
50 int port;
51 port = alsa_create_port(alsactx.handle, i);
52 if (port < 0)
53 - return;
54 + return 1;
55 alsactx.port[i] = port;
56 alsa_set_timestamping(&alsactx, port);
57 printf(" %d:%d", alsactx.client, alsactx.port[i]);
58 @@ -411,6 +411,7 @@
59 server_reset();
60 doit(&alsactx);
61 }
62 + return 0;
63 }
64
65 /*
66 diff -ur TiMidity++-2.13.2/interface/emacs_c.c TiMidity++-2.13.2-new/interface/emacs_c.c
67 --- TiMidity++-2.13.2/interface/emacs_c.c 2005-01-02 02:53:01.000000000 +0100
68 +++ TiMidity++-2.13.2-new/interface/emacs_c.c 2005-01-02 03:02:02.000000000 +0100
69 @@ -78,7 +78,7 @@
70 static void ctl_close(void);
71 static int ctl_read(int32 *valp);
72 static int cmsg(int type, int verbosity_level, char *fmt, ...);
73 -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_event(CtlEvent *e);
76 static int read_ready(void);
77 static int emacs_type = 0; /* 0:emacs, 1:mule, 2:??
78 @@ -249,7 +249,7 @@
79 return s;
80 }
81
82 -static void ctl_pass_playing_list(int argc, char *argv[])
83 +static int ctl_pass_playing_list(int argc, char *argv[])
84 {
85 int i;
86 char cmd[BUFSIZ];
87 @@ -274,7 +274,7 @@
88 {
89 for(i = 1; i < argc; i++)
90 play_midi_file(argv[i]);
91 - return;
92 + return 0;
93 }
94
95 /* Main Loop */
96 @@ -296,11 +296,11 @@
97 ctl_refresh();
98 break;
99 case RC_QUIT:
100 - return;
101 + return 0;
102 } /* skipping others command */
103 }
104 else if(!strncmp(cmd, "QUIT", 4))
105 - return;
106 + return 0;
107 else
108 continue; /* skipping unknown command */
109 }
110 diff -ur TiMidity++-2.13.2/interface/gtk_c.c TiMidity++-2.13.2-new/interface/gtk_c.c
111 --- TiMidity++-2.13.2/interface/gtk_c.c 2005-01-02 02:53:01.000000000 +0100
112 +++ TiMidity++-2.13.2-new/interface/gtk_c.c 2005-01-02 03:35:53.447946272 +0100
113 @@ -57,7 +57,7 @@
114
115 static int ctl_open(int using_stdin, int using_stdout);
116 static void ctl_close(void);
117 -static void ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
118 +static int ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
119 static int ctl_read(int32 *valp);
120 static int cmsg(int type, int verbosity_level, char *fmt, ...);
121 static void ctl_event(CtlEvent *e);
122 @@ -528,7 +528,7 @@
123 #endif
124 }
125
126 -static void
127 +static int
128 ctl_pass_playing_list(int number_of_files, char *list_of_files[])
129 {
130 int i=0;
131 @@ -558,7 +558,7 @@
132 }
133 else {
134 if (command==RC_QUIT)
135 - return;
136 + return 0;
137 if (command==RC_ERROR)
138 command=RC_TUNE_END; /* Launch next file */
139
140 @@ -580,6 +580,7 @@
141 command = ctl_blocking_read(&val);
142 }
143 }
144 + return 0;
145 }
146
147 /*
148 diff -ur TiMidity++-2.13.2/interface/mac_c.c TiMidity++-2.13.2-new/interface/mac_c.c
149 --- TiMidity++-2.13.2/interface/mac_c.c 2005-01-02 02:53:01.000000000 +0100
150 +++ TiMidity++-2.13.2-new/interface/mac_c.c 2005-01-02 03:04:13.000000000 +0100
151 @@ -71,7 +71,7 @@
152 static void ctl_pitch_bend(int channel, int val);
153 static void ctl_reset(void);
154 static int ctl_open(int using_stdin, int using_stdout);
155 -static void ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
156 +static int ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
157 static void ctl_close(void);
158 static int ctl_read(int32 *valp);
159 static int cmsg(int type, int verbosity_level, char *fmt, ...);
160 @@ -955,7 +955,7 @@
161 }
162
163
164 -static void ctl_pass_playing_list(int init_number_of_files,
165 +static int ctl_pass_playing_list(int init_number_of_files,
166 char * /*init_list_of_files*/ [])
167 {
168 EventRecord event;
169 @@ -983,6 +983,7 @@
170 mac_HandleEvent(&event);
171 }
172 Do_Quit();
173 + return 0;
174 }
175
176 static Boolean UserWantsControl()
177 diff -ur TiMidity++-2.13.2/interface/motif_c.c TiMidity++-2.13.2-new/interface/motif_c.c
178 --- TiMidity++-2.13.2/interface/motif_c.c 2005-01-02 02:53:01.000000000 +0100
179 +++ TiMidity++-2.13.2-new/interface/motif_c.c 2005-01-02 03:05:04.000000000 +0100
180 @@ -60,7 +60,7 @@
181 static void ctl_close(void);
182 static int ctl_read(int32 *valp);
183 static int cmsg(int type, int verbosity_level, char *fmt, ...);
184 -static void ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
185 +static int ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
186 static void ctl_event(CtlEvent *e);
187
188 static int motif_ready = 0;
189 @@ -346,12 +346,13 @@
190 return(ctl_blocking_read(valp));
191 }
192
193 -static void ctl_pass_playing_list(int number_of_files, char *list_of_files[])
194 +static int ctl_pass_playing_list(int number_of_files, char *list_of_files[])
195 {
196 int i=0;
197 char file_to_play[1000];
198 int command;
199 int32 val;
200 + int retval;
201
202 motif_ready = 1;
203
204 @@ -381,12 +382,13 @@
205 else
206 {
207 if (command==RC_QUIT)
208 - return;
209 + return 0;
210
211 switch(command)
212 {
213 case RC_ERROR:
214 m_pipe_int_write(ERROR_MESSAGE);
215 + retval=1;
216 break;
217 case RC_NONE:
218 break;
219 @@ -411,6 +413,7 @@
220 command = ctl_blocking_read(&val);
221 }
222 }
223 + return retval;
224 }
225
226 /*
227 diff -ur TiMidity++-2.13.2/interface/ncurs_c.c TiMidity++-2.13.2-new/interface/ncurs_c.c
228 --- TiMidity++-2.13.2/interface/ncurs_c.c 2005-01-02 02:53:01.000000000 +0100
229 +++ TiMidity++-2.13.2-new/interface/ncurs_c.c 2005-01-02 03:05:48.000000000 +0100
230 @@ -174,7 +174,7 @@
231
232 static int ctl_open(int using_stdin, int using_stdout);
233 static void ctl_close(void);
234 -static void ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
235 +static int ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
236 static int ctl_read(int32 *valp);
237 static int cmsg(int type, int verbosity_level, char *fmt, ...);
238 static void ctl_event(CtlEvent *e);
239 @@ -3100,7 +3100,7 @@
240 reuse_mblock(&tmpbuffer);
241 }
242
243 -static void ctl_pass_playing_list(int number_of_files, char *list_of_files[])
244 +static int ctl_pass_playing_list(int number_of_files, char *list_of_files[])
245 {
246 int i;
247 int act_number_of_files;
248 @@ -3128,7 +3128,7 @@
249
250 if (file_list.number<0) {
251 cmsg(CMSG_FATAL, VERB_NORMAL, "No MIDI file to play!");
252 - return;
253 + return 1;
254 }
255
256 ctl_listmode_max=1;
257 @@ -3169,7 +3169,7 @@
258 if(!(ctl.flags & CTLF_LIST_LOOP) || stdin_check)
259 {
260 aq_flush(0);
261 - return;
262 + return 0;
263 }
264 i = 0;
265 if(rc == RC_TUNE_END)
266 @@ -3187,7 +3187,7 @@
267
268 /* else fall through */
269 case RC_QUIT:
270 - return;
271 + return 0;
272 }
273 ctl_reset();
274 }
275 diff -ur TiMidity++-2.13.2/interface/portmidisyn_c.c TiMidity++-2.13.2-new/interface/portmidisyn_c.c
276 --- TiMidity++-2.13.2/interface/portmidisyn_c.c 2005-01-02 02:53:01.000000000 +0100
277 +++ TiMidity++-2.13.2-new/interface/portmidisyn_c.c 2005-01-02 03:13:05.000000000 +0100
278 @@ -96,7 +96,7 @@
279 static int ctl_read(int32 *valp);
280 static int cmsg(int type, int verbosity_level, char *fmt, ...);
281 static void ctl_event(CtlEvent *e);
282 -static void ctl_pass_playing_list(int n, char *args[]);
283 +static int ctl_pass_playing_list(int n, char *args[]);
284
285 #ifndef __W32__
286 static void init_keybord(void);
287 @@ -215,17 +215,17 @@
288
289 #ifdef IA_W32G_SYN
290 extern void w32g_syn_doit(void);
291 -extern void w32g_syn_ctl_pass_playing_list(int n_, char *args_[]);
292 +extern int w32g_syn_ctl_pass_playing_list(int n_, char *args_[]);
293
294
295 -static void ctl_pass_playing_list(int n, char *args[])
296 +static int ctl_pass_playing_list(int n, char *args[])
297 {
298 - w32g_syn_ctl_pass_playing_list ( n, args );
299 + return w32g_syn_ctl_pass_playing_list ( n, args );
300 }
301 #endif
302
303 #ifndef IA_W32G_SYN
304 -static void ctl_pass_playing_list(int n, char *args[])
305 +static int ctl_pass_playing_list(int n, char *args[])
306 #else
307 // 0: OK, 2: Require to reset.
308 int ctl_pass_playing_list2(int n, char *args[])
309 @@ -241,7 +241,7 @@
310 #ifndef IA_W32G_SYN
311 if(n > MAX_PORT ){
312 printf( "Usage: timidity -iW [Midi interface No s]\n");
313 - return;
314 + return 1;
315 }
316 #endif
317
318 @@ -347,11 +347,7 @@
319 #endif /* USE_GTK_GUI */
320 rtsyn_close();
321
322 -#ifdef IA_W32G_SYN
323 return 0;
324 -#else
325 - return;
326 -#endif
327 }
328
329
330 diff -ur TiMidity++-2.13.2/interface/server_c.c TiMidity++-2.13.2-new/interface/server_c.c
331 --- TiMidity++-2.13.2/interface/server_c.c 2005-01-02 02:53:01.000000000 +0100
332 +++ TiMidity++-2.13.2-new/interface/server_c.c 2005-01-02 03:07:38.000000000 +0100
333 @@ -176,7 +176,7 @@
334 static int ctl_read(int32 *valp);
335 static int cmsg(int type, int verbosity_level, char *fmt, ...);
336 static void ctl_event(CtlEvent *e);
337 -static void ctl_pass_playing_list(int n, char *args[]);
338 +static int ctl_pass_playing_list(int n, char *args[]);
339
340 /**********************************/
341 /* export the interface functions */
342 @@ -356,14 +356,14 @@
343 static void compute_sample_increment(void);
344 static void server_reset(void);
345
346 -static void ctl_pass_playing_list(int n, char *args[])
347 +static int ctl_pass_playing_list(int n, char *args[])
348 {
349 int sock;
350
351 if(n != 2 && n != 1)
352 {
353 fprintf(stderr, "Usage: timidity -ir control-port [data-port]\n");
354 - return;
355 + return 1;
356 }
357
358 #ifdef SIGPIPE
359 @@ -379,7 +379,7 @@
360 if (control_port) {
361 sock = pasv_open(&control_port);
362 if(sock == -1)
363 - return;
364 + return 1;
365 }
366 opt_realtime_playing = 1; /* Enable loading patch while playing */
367 allocate_cache_size = 0; /* Don't use pre-calclated samples */
368 @@ -404,7 +404,7 @@
369 continue;
370 perror("accept");
371 close(sock);
372 - return;
373 + return 1;
374 }
375 }
376 else control_fd = 0;
377 @@ -446,6 +446,7 @@
378 if (!control_port)
379 break;
380 }
381 + return 0;
382 }
383
384 #define MAX_GETCMD_PARAMS 8
385 diff -ur TiMidity++-2.13.2/interface/tk_c.c TiMidity++-2.13.2-new/interface/tk_c.c
386 --- TiMidity++-2.13.2/interface/tk_c.c 2005-01-02 02:53:01.000000000 +0100
387 +++ TiMidity++-2.13.2-new/interface/tk_c.c 2005-01-02 03:08:48.000000000 +0100
388 @@ -86,7 +86,7 @@
389 static void ctl_close(void);
390 static int ctl_read(int32 *valp);
391 static int cmsg(int type, int verbosity_level, char *fmt, ...);
392 -static void ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
393 +static int ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
394 static int ctl_blocking_read(int32 *valp);
395 static void ctl_note(int status, int ch, int note, int vel);
396 static void ctl_event(CtlEvent *e);
397 @@ -587,7 +587,7 @@
398 return(ctl_blocking_read(valp));
399 }
400
401 -static void ctl_pass_playing_list(int number_of_files, char *list_of_files[])
402 +static int ctl_pass_playing_list(int number_of_files, char *list_of_files[])
403 {
404 int i=0;
405 char local[1000];
406 @@ -618,7 +618,7 @@
407 /* if really QUIT */
408 k_pipe_gets(local, sizeof(local)-1);
409 if (*local == 'Z')
410 - return;
411 + return 0;
412 /* only stop playing..*/
413 }
414 if (command==RC_CHANGE_VOLUME) /* init volume */
415 @@ -646,6 +646,7 @@
416 command = ctl_blocking_read(&val);
417 }
418 }
419 + return 0;
420 }
421
422
423 diff -ur TiMidity++-2.13.2/interface/w32g_c.c TiMidity++-2.13.2-new/interface/w32g_c.c
424 --- TiMidity++-2.13.2/interface/w32g_c.c 2005-01-02 02:53:01.000000000 +0100
425 +++ TiMidity++-2.13.2-new/interface/w32g_c.c 2005-01-02 03:10:03.000000000 +0100
426 @@ -86,7 +86,7 @@
427
428 static int ctl_open(int using_stdin, int using_stdout);
429 static void ctl_close(void);
430 -static void ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
431 +static int ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
432 static void ctl_event(CtlEvent *e);
433 static int ctl_read(int32 *valp);
434 static int cmsg(int type, int verbosity_level, char *fmt, ...);
435 @@ -662,7 +662,7 @@
436 }
437
438 extern BOOL SetWrdWndActive(void);
439 -static void ctl_pass_playing_list(int number_of_files, char *list_of_files[])
440 +static int ctl_pass_playing_list(int number_of_files, char *list_of_files[])
441 {
442 static int init_flag = 1;
443 int rc;
444 @@ -779,7 +779,7 @@
445 if(ctl.flags & CTLF_AUTOEXIT) {
446 if(play_mode->fd != -1)
447 aq_flush(0);
448 - return;
449 + return 0;
450 }
451 break;
452 }
453 @@ -803,7 +803,7 @@
454 if(ctl.flags & CTLF_AUTOEXIT){
455 if(play_mode->fd != -1)
456 aq_flush(0);
457 - return;
458 + return 0;
459 }
460 if((ctl.flags & CTLF_LIST_LOOP) && w32g_nvalid_playlist())
461 {
462 @@ -839,7 +839,7 @@
463 case RC_QUIT:
464 if(play_mode->fd != -1)
465 aq_flush(1);
466 - return;
467 + return 0;
468
469 case RC_CHANGE_VOLUME:
470 amplification += value;
471 @@ -868,6 +868,7 @@
472 PrefSettingApplyReally();
473 rc = RC_NONE;
474 }
475 + return 0;
476 }
477
478 static void ctl_lcd_mark(int flag, int x, int y)
479 diff -ur TiMidity++-2.13.2/interface/w32g_syn.c TiMidity++-2.13.2-new/interface/w32g_syn.c
480 --- TiMidity++-2.13.2/interface/w32g_syn.c 2005-01-02 02:53:01.000000000 +0100
481 +++ TiMidity++-2.13.2-new/interface/w32g_syn.c 2005-01-02 03:10:49.000000000 +0100
482 @@ -281,7 +281,7 @@
483 static int wait_for_termination_of_syn_thread ( void );
484 int w32g_message_set ( int cmd );
485 int w32g_message_get ( w32g_syn_message_t *msg );
486 -void w32g_syn_ctl_pass_playing_list ( int n_, char *args_[] );
487 +int w32g_syn_ctl_pass_playing_list ( int n_, char *args_[] );
488 int w32g_syn_do_before_pref_apply ( void );
489 int w32g_syn_do_after_pref_apply ( void );
490
491 @@ -1403,7 +1403,7 @@
492 }
493 }
494
495 -void w32g_syn_ctl_pass_playing_list ( int n_, char *args_[] )
496 +int w32g_syn_ctl_pass_playing_list ( int n_, char *args_[] )
497 {
498 int i;
499 #ifndef TWSYNSRV
500 @@ -1471,6 +1471,7 @@
501 }
502 #endif
503 if ( w32g_syn.quit_state < 2 ) w32g_syn.quit_state = 2;
504 + return 0;
505 }
506
507 int w32g_syn_do_before_pref_apply ( void )
508 diff -ur TiMidity++-2.13.2/interface/winsyn_c.c TiMidity++-2.13.2-new/interface/winsyn_c.c
509 --- TiMidity++-2.13.2/interface/winsyn_c.c 2005-01-02 02:53:01.000000000 +0100
510 +++ TiMidity++-2.13.2-new/interface/winsyn_c.c 2005-01-02 03:11:36.000000000 +0100
511 @@ -88,7 +88,7 @@
512 static int ctl_read(int32 *valp);
513 static int cmsg(int type, int verbosity_level, char *fmt, ...);
514 static void ctl_event(CtlEvent *e);
515 -static void ctl_pass_playing_list(int n, char *args[]);
516 +static int ctl_pass_playing_list(int n, char *args[]);
517
518 #ifndef __W32__
519 static void init_keybord(void);
520 @@ -207,17 +207,17 @@
521
522 #ifdef IA_W32G_SYN
523 extern void w32g_syn_doit(void);
524 -extern void w32g_syn_ctl_pass_playing_list(int n_, char *args_[]);
525 +extern int w32g_syn_ctl_pass_playing_list(int n_, char *args_[]);
526
527
528 -static void ctl_pass_playing_list(int n, char *args[])
529 +static int ctl_pass_playing_list(int n, char *args[])
530 {
531 - w32g_syn_ctl_pass_playing_list ( n, args );
532 + return w32g_syn_ctl_pass_playing_list ( n, args );
533 }
534 #endif
535
536 #ifndef IA_W32G_SYN
537 -static void ctl_pass_playing_list(int n, char *args[])
538 +static int ctl_pass_playing_list(int n, char *args[])
539 #else
540 // 0: OK, 2: Require to reset.
541 int ctl_pass_playing_list2(int n, char *args[])
542 @@ -233,7 +233,7 @@
543 #ifndef IA_W32G_SYN
544 if(n > MAX_PORT ){
545 printf( "Usage: timidity -iW [Midi interface No s]\n");
546 - return;
547 + return 1;
548 }
549 #endif
550
551 @@ -339,11 +339,7 @@
552 #endif /* USE_GTK_GUI */
553 rtsyn_close();
554
555 -#ifdef IA_W32G_SYN
556 return 0;
557 -#else
558 - return;
559 -#endif
560 }
561
562
563 diff -ur TiMidity++-2.13.2/interface/xaw_c.c TiMidity++-2.13.2-new/interface/xaw_c.c
564 --- TiMidity++-2.13.2/interface/xaw_c.c 2005-01-02 02:53:01.000000000 +0100
565 +++ TiMidity++-2.13.2-new/interface/xaw_c.c 2005-01-02 03:11:57.000000000 +0100
566 @@ -55,7 +55,7 @@
567 static void ctl_close(void);
568 static int ctl_read(int32 *valp);
569 static int cmsg(int type, int verbosity_level, char *fmt, ...);
570 -static void ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
571 +static int ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
572 static void ctl_event(CtlEvent *e);
573
574 static void a_pipe_open(void);
575 @@ -463,7 +463,7 @@
576 }
577 }
578
579 -static void ctl_pass_playing_list(int init_number_of_files,
580 +static int ctl_pass_playing_list(int init_number_of_files,
581 char *init_list_of_files[]) {
582 int current_no,command=RC_NONE,i,j;
583 int32 val;
584 diff -ur TiMidity++-2.13.2/interface/xskin_c.c TiMidity++-2.13.2-new/interface/xskin_c.c
585 --- TiMidity++-2.13.2/interface/xskin_c.c 2005-01-02 02:53:01.000000000 +0100
586 +++ TiMidity++-2.13.2-new/interface/xskin_c.c 2005-01-02 03:12:31.000000000 +0100
587 @@ -55,7 +55,7 @@
588 static void ctl_close(void);
589 static int ctl_read(int32 *valp);
590 static int cmsg(int type, int verbosity_level, char *fmt, ...);
591 -static void ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
592 +static int ctl_pass_playing_list(int number_of_files, char *list_of_files[]);
593 static void ctl_event(CtlEvent *e);
594 static void ctl_speana_data(double *val, int size);
595 static void initialize_exp_hz_table( void );
596 @@ -342,7 +342,7 @@
597 }
598 }
599
600 -static void ctl_pass_playing_list(int number_of_files, char *list_of_files[]) {
601 +static int ctl_pass_playing_list(int number_of_files, char *list_of_files[]) {
602
603 int current_no,command,i;
604 int32 val;
605 @@ -403,7 +403,7 @@
606 command=play_midi_file(list_of_files[file_table[current_no]]);
607 } else {
608 /* Quit timidity*/
609 - if (exitflag) return;
610 + if (exitflag) return 0;
611 /* Stop playing */
612 if (command==RC_QUIT) {
613 sprintf(local_buf,"T 00:00");
614 @@ -461,6 +461,7 @@
615 command=ctl_blocking_read(&val);
616 }
617 }
618 + return 0;
619 }
620
621 /* ------ Pipe handlers ----- */
622 diff -ur TiMidity++-2.13.2/timidity/controls.h TiMidity++-2.13.2-new/timidity/controls.h
623 --- TiMidity++-2.13.2/timidity/controls.h 2005-01-02 02:53:01.000000000 +0100
624 +++ TiMidity++-2.13.2-new/timidity/controls.h 2005-01-02 02:59:37.000000000 +0100
625 @@ -147,7 +147,7 @@
626
627 int (*open)(int using_stdin, int using_stdout);
628 void (*close)(void);
629 - void (*pass_playing_list)(int number_of_files, char *list_of_files[]);
630 + int (*pass_playing_list)(int number_of_files, char *list_of_files[]);
631 int (*read)(int32 *valp);
632 int (*cmsg)(int type, int verbosity_level, char *fmt, ...);
633 void (*event)(CtlEvent *ev); /* Control events */
634 diff -ur TiMidity++-2.13.2/timidity/playmidi.c TiMidity++-2.13.2-new/timidity/playmidi.c
635 --- TiMidity++-2.13.2/timidity/playmidi.c 2005-01-02 02:53:01.000000000 +0100
636 +++ TiMidity++-2.13.2-new/timidity/playmidi.c 2005-01-02 03:15:55.000000000 +0100
637 @@ -8562,7 +8562,7 @@
638 return rc;
639 }
640
641 -void dumb_pass_playing_list(int number_of_files, char *list_of_files[])
642 +int dumb_pass_playing_list(int number_of_files, char *list_of_files[])
643 {
644 #ifndef CFG_FOR_SF
645 int i = 0;
646 @@ -8586,12 +8586,12 @@
647 aq_flush(0);
648
649 if(!(ctl->flags & CTLF_LIST_LOOP))
650 - return;
651 + return 0;
652 i = 0;
653 break;
654
655 case RC_QUIT:
656 - return;
657 + return 0;
658 }
659 }
660 #endif
661 diff -ur TiMidity++-2.13.2/timidity/playmidi.h TiMidity++-2.13.2-new/timidity/playmidi.h
662 --- TiMidity++-2.13.2/timidity/playmidi.h 2005-01-02 02:53:01.000000000 +0100
663 +++ TiMidity++-2.13.2-new/timidity/playmidi.h 2005-01-02 03:16:07.000000000 +0100
664 @@ -577,7 +577,7 @@
665 extern int opt_pan_delay;
666
667 extern int play_midi_file(char *fn);
668 -extern void dumb_pass_playing_list(int number_of_files, char *list_of_files[]);
669 +extern int dumb_pass_playing_list(int number_of_files, char *list_of_files[]);
670 extern void default_ctl_lyric(int lyricid);
671 extern int check_apply_control(void);
672 extern void recompute_freq(int v);
673 diff -ur TiMidity++-2.13.2/timidity/sndfont.c TiMidity++-2.13.2-new/timidity/sndfont.c
674 --- TiMidity++-2.13.2/timidity/sndfont.c 2005-01-02 02:53:01.000000000 +0100
675 +++ TiMidity++-2.13.2-new/timidity/sndfont.c 2005-01-02 03:15:27.000000000 +0100
676 @@ -1893,7 +1893,7 @@
677
678 #if CFG_FOR_SF_SUPPORT_FFT
679 int check_apply_control(void) { return 0; } // not pass
680 -void dumb_pass_playing_list(int number_of_files, char *list_of_files[]) {}
681 +int dumb_pass_playing_list(int number_of_files, char *list_of_files[]) {return 0;}
682 void recompute_freq(int v) {} // not pass
683 int32 control_ratio = 0;
684 int reduce_quality_flag = 0;
685 diff -ur TiMidity++-2.13.2/timidity/timidity.c TiMidity++-2.13.2-new/timidity/timidity.c
686 --- TiMidity++-2.13.2/timidity/timidity.c 2005-01-02 02:53:01.000000000 +0100
687 +++ TiMidity++-2.13.2-new/timidity/timidity.c 2005-01-02 02:59:29.000000000 +0100
688 @@ -5291,6 +5291,7 @@
689 int need_stdin = 0, need_stdout = 0;
690 int i;
691 int output_fail = 0;
692 + int retval;
693
694 if(nfiles == 0 && !strchr(INTERACTIVE_INTERFACE_IDS, ctl->id_character))
695 return 0;
696 @@ -5410,7 +5411,7 @@
697 ctl->cmsg(CMSG_INFO, VERB_DEBUG_SILLY,
698 "pass_playing_list() nfiles=%d", nfiles);
699
700 - ctl->pass_playing_list(nfiles, files);
701 + retval=ctl->pass_playing_list(nfiles, files);
702
703 if(intr)
704 aq_flush(1);
705 @@ -5451,7 +5452,7 @@
706 url_news_connection_cache(URL_NEWS_CLOSE_CACHE);
707 #endif /* SUPPORT_SOCKET */
708
709 - return 0;
710 + return retval;
711 }
712
713 #ifdef IA_W32GUI
714
715
716
717 1.1 src/patchsets/timidity++/2.13.2/02_all_gtk26.patch
718
719 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/timidity++/2.13.2/02_all_gtk26.patch?rev=1.1&view=markup
720 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/timidity++/2.13.2/02_all_gtk26.patch?rev=1.1&content-type=text/plain
721
722 Index: 02_all_gtk26.patch
723 ===================================================================
724 --- interface/gtk_i.c 2004/12/21 16:59:33 1.1
725 +++ interface/gtk_i.c 2004/12/21 16:59:41
726 @@ -365,6 +365,7 @@ void
727 Launch_Gtk_Process(int pipe_number)
728 {
729 int argc = 0;
730 + gchar **argv = NULL;
731 GtkWidget *button, *mbar, *swin;
732 GtkWidget *table, *align, *handlebox;
733 GtkWidget *vbox, *hbox, *vbox2, *scrolled_win;
734 @@ -373,7 +374,7 @@ Launch_Gtk_Process(int pipe_number)
735 /* enable locale */
736 gtk_set_locale ();
737
738 - gtk_init (&argc, NULL);
739 + gtk_init (&argc, &argv);
740
741 ttip = create_yellow_tooltips();
742 window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
743
744
745
746 1.1 src/patchsets/timidity++/2.13.2/03_all_gcc4.patch
747
748 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/timidity++/2.13.2/03_all_gcc4.patch?rev=1.1&view=markup
749 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/timidity++/2.13.2/03_all_gcc4.patch?rev=1.1&content-type=text/plain
750
751 Index: 03_all_gcc4.patch
752 ===================================================================
753 diff -ur TiMidity++-2.13.2-orig/interface/xaw_i.c TiMidity++-2.13.2/interface/xaw_i.c
754 --- TiMidity++-2.13.2-orig/interface/xaw_i.c 2005-06-25 21:55:19.000000000 -0400
755 +++ TiMidity++-2.13.2/interface/xaw_i.c 2005-06-25 21:56:01.000000000 -0400
756 @@ -261,7 +261,7 @@
757 String bitmapdir = XAW_BITMAP_DIR;
758 Boolean arrangetitle,savelist;
759 static char **current_flist = NULL;
760 -static int voices = 0, last_voice = 0, voices_num_width;
761 +static int xaw_i_voices = 0, last_voice = 0, voices_num_width;
762 static int maxentry_on_a_menu = 0,submenu_n = 0;
763 #define OPTIONS_WINDOW 1
764 #define FLIST_WINDOW 2
765 @@ -1329,7 +1329,7 @@
766 c= *(local_buf+1);
767 n= atoi(local_buf+2);
768 if(c == 'L')
769 - voices = n;
770 + xaw_i_voices = n;
771 else
772 last_voice = n;
773 if(IsTracePlaying()) drawVoices();
774 @@ -2070,7 +2070,7 @@
775 XSetForeground(disp, gct, tracecolor);
776 XFillRectangle(disp,XtWindow(trace),gct,voices_num_width +4,
777 MAX_XAW_MIDI_CHANNELS*BAR_SPACE+TRACEV_OFS+1,VOICENUM_WIDTH,TRACE_FOOT);
778 - sprintf(local_buf, "%3d/%d", last_voice, voices);
779 + sprintf(local_buf, "%3d/%d", last_voice, xaw_i_voices);
780 XSetForeground(disp, gct, capcolor);
781 XDrawString(disp, XtWindow(trace),gct,voices_num_width+6,
782 MAX_XAW_MIDI_CHANNELS*BAR_SPACE+TRACEV_OFS+16,local_buf,strlen(local_buf));
783
784
785
786 1.1 src/patchsets/timidity++/2.13.2/04_all_flac.patch
787
788 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/timidity++/2.13.2/04_all_flac.patch?rev=1.1&view=markup
789 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/timidity++/2.13.2/04_all_flac.patch?rev=1.1&content-type=text/plain
790
791 Index: 04_all_flac.patch
792 ===================================================================
793 diff -ur TiMidity++-2.13.2.orig/timidity/flac_a.c TiMidity++-2.13.2/timidity/flac_a.c
794 --- TiMidity++-2.13.2.orig/timidity/flac_a.c 2004-05-23 07:35:44.000000000 +0300
795 +++ TiMidity++-2.13.2/timidity/flac_a.c 2010-05-03 23:45:26.000000000 +0300
796 @@ -45,6 +45,11 @@
797 #endif
798
799 #include <FLAC/all.h>
800 +#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT < 8
801 +#define LEGACY_FLAC
802 +#else
803 +#undef LEGACY_FLAC
804 +#endif
805 #ifdef AU_OGGFLAC
806 #include <OggFLAC/stream_encoder.h>
807 #endif
808 @@ -100,7 +105,11 @@
809 unsigned long out_bytes;
810 union {
811 FLAC__StreamEncoderState flac;
812 +#ifdef LEGACY_FLAC
813 FLAC__SeekableStreamEncoderState s_flac;
814 +#else
815 + FLAC__StreamEncoderState s_flac;
816 +#endif
817 #ifdef AU_OGGFLAC
818 OggFLAC__StreamEncoderState ogg;
819 #endif
820 @@ -108,7 +117,11 @@
821 union {
822 union {
823 FLAC__StreamEncoder *stream;
824 +#ifdef LEGACY_FLAC
825 FLAC__SeekableStreamEncoder *s_stream;
826 +#else
827 + FLAC__StreamEncoder *s_stream;
828 +#endif
829 } flac;
830 #ifdef AU_OGGFLAC
831 union {
832 @@ -174,11 +187,19 @@
833 const FLAC__StreamMetadata *metadata,
834 void *client_data);
835 static FLAC__StreamEncoderWriteStatus
836 +#ifdef LEGACY_FLAC
837 flac_seekable_stream_encoder_write_callback(const FLAC__SeekableStreamEncoder *encoder,
838 +#else
839 +flac_seekable_stream_encoder_write_callback(const FLAC__StreamEncoder *encoder,
840 +#endif
841 const FLAC__byte buffer[],
842 unsigned bytes, unsigned samples,
843 unsigned current_frame, void *client_data);
844 +#ifdef LEGACY_FLAC
845 static void flac_seekable_stream_encoder_metadata_callback(const FLAC__SeekableStreamEncoder *encoder,
846 +#else
847 +static void flac_seekable_stream_encoder_metadata_callback(const FLAC__StreamEncoder *encoder,
848 +#endif
849 const FLAC__StreamMetadata *metadata,
850 void *client_data);
851
852 @@ -306,8 +327,13 @@
853 #endif /* AU_OGGFLAC */
854 if (flac_options.seekable) {
855 if (ctx->encoder.flac.s_stream) {
856 +#ifdef LEGACY_FLAC
857 FLAC__seekable_stream_encoder_finish(ctx->encoder.flac.s_stream);
858 FLAC__seekable_stream_encoder_delete(ctx->encoder.flac.s_stream);
859 +#else
860 + FLAC__stream_encoder_finish(ctx->encoder.flac.s_stream);
861 + FLAC__stream_encoder_delete(ctx->encoder.flac.s_stream);
862 +#endif
863 }
864 }
865 else
866 @@ -435,17 +461,29 @@
867 else
868 #endif /* AU_OGGFLAC */
869 if (flac_options.seekable) {
870 +#ifdef LEGACY_FLAC
871 if ((ctx->encoder.flac.s_stream = FLAC__seekable_stream_encoder_new()) == NULL) {
872 +#else
873 + if ((ctx->encoder.flac.s_stream = FLAC__stream_encoder_new()) == NULL) {
874 +#endif
875 ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "cannot create FLAC stream");
876 flac_session_close();
877 return -1;
878 }
879
880 +#ifdef LEGACY_FLAC
881 FLAC__seekable_stream_encoder_set_channels(ctx->encoder.flac.s_stream, nch);
882 /* 16bps only */
883 FLAC__seekable_stream_encoder_set_bits_per_sample(ctx->encoder.flac.s_stream, 16);
884
885 FLAC__seekable_stream_encoder_set_verify(ctx->encoder.flac.s_stream, flac_options.verify);
886 +#else
887 + FLAC__stream_encoder_set_channels(ctx->encoder.flac.s_stream, nch);
888 + /* 16bps only */
889 + FLAC__stream_encoder_set_bits_per_sample(ctx->encoder.flac.s_stream, 16);
890 +
891 + FLAC__stream_encoder_set_verify(ctx->encoder.flac.s_stream, flac_options.verify);
892 +#endif
893
894 if (!FLAC__format_sample_rate_is_valid(dpm.rate)) {
895 ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "invalid sampling rate %d",
896 @@ -453,27 +491,54 @@
897 flac_session_close();
898 return -1;
899 }
900 +#ifdef LEGACY_FLAC
901 FLAC__seekable_stream_encoder_set_sample_rate(ctx->encoder.flac.s_stream, dpm.rate);
902
903 FLAC__seekable_stream_encoder_set_qlp_coeff_precision(ctx->encoder.flac.s_stream, flac_options.qlp_coeff_precision);
904 /* expensive! */
905 FLAC__seekable_stream_encoder_set_do_qlp_coeff_prec_search(ctx->encoder.flac.s_stream, flac_options.qlp_coeff_precision_search);
906 +#else
907 + FLAC__stream_encoder_set_sample_rate(ctx->encoder.flac.s_stream, dpm.rate);
908 +
909 + FLAC__stream_encoder_set_qlp_coeff_precision(ctx->encoder.flac.s_stream, flac_options.qlp_coeff_precision);
910 + /* expensive! */
911 + FLAC__stream_encoder_set_do_qlp_coeff_prec_search(ctx->encoder.flac.s_stream, flac_options.qlp_coeff_precision_search);
912 +#endif
913 +
914
915 if (nch == 2) {
916 +#ifdef LEGACY_FLAC
917 FLAC__seekable_stream_encoder_set_do_mid_side_stereo(ctx->encoder.flac.s_stream, flac_options.mid_side);
918 FLAC__seekable_stream_encoder_set_loose_mid_side_stereo(ctx->encoder.flac.s_stream, flac_options.adaptive_mid_side);
919 +#else
920 + FLAC__stream_encoder_set_do_mid_side_stereo(ctx->encoder.flac.s_stream, flac_options.mid_side);
921 + FLAC__stream_encoder_set_loose_mid_side_stereo(ctx->encoder.flac.s_stream, flac_options.adaptive_mid_side);
922 +#endif
923 }
924
925 +#ifdef LEGACY_FLAC
926 FLAC__seekable_stream_encoder_set_max_lpc_order(ctx->encoder.flac.s_stream, flac_options.max_lpc_order);
927 FLAC__seekable_stream_encoder_set_min_residual_partition_order(ctx->encoder.flac.s_stream, flac_options.min_residual_partition_order);
928 FLAC__seekable_stream_encoder_set_max_residual_partition_order(ctx->encoder.flac.s_stream, flac_options.max_residual_partition_order);
929
930 FLAC__seekable_stream_encoder_set_blocksize(ctx->encoder.flac.s_stream, flac_options.blocksize);
931 FLAC__seekable_stream_encoder_set_client_data(ctx->encoder.flac.s_stream, ctx);
932 +#else
933 + FLAC__stream_encoder_set_max_lpc_order(ctx->encoder.flac.s_stream, flac_options.max_lpc_order);
934 + FLAC__stream_encoder_set_min_residual_partition_order(ctx->encoder.flac.s_stream, flac_options.min_residual_partition_order);
935 + FLAC__stream_encoder_set_max_residual_partition_order(ctx->encoder.flac.s_stream, flac_options.max_residual_partition_order);
936 +
937 + FLAC__stream_encoder_set_blocksize(ctx->encoder.flac.s_stream, flac_options.blocksize);
938 +#endif
939
940 if (0 < num_metadata)
941 +#ifdef LEGACY_FLAC
942 FLAC__seekable_stream_encoder_set_metadata(ctx->encoder.flac.s_stream, metadata, num_metadata);
943 +#else
944 + FLAC__stream_encoder_set_metadata(ctx->encoder.flac.s_stream, metadata, num_metadata);
945 +#endif
946
947 +#ifdef LEGACY_FLAC
948 /* set callback */
949 /* FLAC__seekable_stream_encoder_set_metadata_callback(ctx->encoder.flac.s_stream, flac_seekable_stream_encoder_metadata_callback); /* */
950 #ifndef __BORLANDC__
951 @@ -483,8 +548,17 @@
952
953 ctx->state.s_flac = FLAC__seekable_stream_encoder_init(ctx->encoder.flac.s_stream);
954 if (ctx->state.s_flac != FLAC__SEEKABLE_STREAM_ENCODER_OK) {
955 +#else
956 +
957 + ctx->state.s_flac = FLAC__stream_encoder_init_stream(ctx->encoder.flac.s_stream, flac_seekable_stream_encoder_write_callback, NULL, NULL, flac_seekable_stream_encoder_metadata_callback, ctx);
958 + if (ctx->state.s_flac != FLAC__STREAM_ENCODER_OK) {
959 +#endif
960 ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "cannot create FLAC state (%s)",
961 +#ifdef LEGACY_FLAC
962 FLAC__SeekableStreamEncoderStateString[ctx->state.s_flac]);
963 +#else
964 + FLAC__StreamEncoderStateString[ctx->state.s_flac]);
965 +#endif
966 flac_session_close();
967 return -1;
968 }
969 @@ -525,16 +599,22 @@
970 FLAC__stream_encoder_set_max_residual_partition_order(ctx->encoder.flac.stream, flac_options.max_residual_partition_order);
971
972 FLAC__stream_encoder_set_blocksize(ctx->encoder.flac.stream, flac_options.blocksize);
973 +#ifdef LEGACY_FLAC
974 FLAC__stream_encoder_set_client_data(ctx->encoder.flac.stream, ctx);
975 +#endif
976
977 if (0 < num_metadata)
978 FLAC__stream_encoder_set_metadata(ctx->encoder.flac.stream, metadata, num_metadata);
979
980 +#ifdef LEGACY_FLAC
981 /* set callback */
982 FLAC__stream_encoder_set_metadata_callback(ctx->encoder.flac.stream, flac_stream_encoder_metadata_callback);
983 FLAC__stream_encoder_set_write_callback(ctx->encoder.flac.stream, flac_stream_encoder_write_callback);
984
985 ctx->state.flac = FLAC__stream_encoder_init(ctx->encoder.flac.stream);
986 +#else
987 + ctx->state.flac = FLAC__stream_encoder_init_stream(ctx->encoder.flac.stream, flac_stream_encoder_write_callback, NULL, NULL, flac_stream_encoder_metadata_callback, ctx);
988 +#endif
989 if (ctx->state.flac != FLAC__STREAM_ENCODER_OK) {
990 ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "cannot create FLAC state (%s)",
991 FLAC__StreamEncoderStateString[ctx->state.flac]);
992 @@ -676,7 +756,11 @@
993 {
994 }
995 static FLAC__StreamEncoderWriteStatus
996 +#ifdef LEGACY_FLAC
997 flac_seekable_stream_encoder_write_callback(const FLAC__SeekableStreamEncoder *encoder,
998 +#else
999 +flac_seekable_stream_encoder_write_callback(const FLAC__StreamEncoder *encoder,
1000 +#endif
1001 const FLAC__byte buffer[],
1002 unsigned bytes, unsigned samples,
1003 unsigned current_frame, void *client_data)
1004 @@ -690,7 +774,11 @@
1005 else
1006 return FLAC__STREAM_ENCODER_WRITE_STATUS_FATAL_ERROR;
1007 }
1008 +#ifdef LEGACY_FLAC
1009 static void flac_seekable_stream_encoder_metadata_callback(const FLAC__SeekableStreamEncoder *encoder,
1010 +#else
1011 +static void flac_seekable_stream_encoder_metadata_callback(const FLAC__StreamEncoder *encoder,
1012 +#endif
1013 const FLAC__StreamMetadata *metadata,
1014 void *client_data)
1015 {
1016 @@ -747,22 +835,38 @@
1017 else
1018 #endif /* AU_OGGFLAC */
1019 if (flac_options.seekable) {
1020 +#ifdef LEGACY_FLAC
1021 ctx->state.s_flac = FLAC__seekable_stream_encoder_get_state(ctx->encoder.flac.s_stream);
1022 +#else
1023 + ctx->state.s_flac = FLAC__stream_encoder_get_state(ctx->encoder.flac.s_stream);
1024 +#endif
1025 if (ctx->state.s_flac != FLAC__STREAM_ENCODER_OK) {
1026 if (ctx->state.s_flac == FLAC__STREAM_ENCODER_VERIFY_DECODER_ERROR |
1027 FLAC__STREAM_ENCODER_VERIFY_MISMATCH_IN_AUDIO_DATA) {
1028 ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "FLAC stream verify error (%s)",
1029 +#ifdef LEGACY_FLAC
1030 FLAC__SeekableStreamDecoderStateString[FLAC__seekable_stream_encoder_get_verify_decoder_state(ctx->encoder.flac.s_stream)]);
1031 +#else
1032 + FLAC__StreamDecoderStateString[FLAC__stream_encoder_get_verify_decoder_state(ctx->encoder.flac.s_stream)]);
1033 +#endif
1034 }
1035 else {
1036 ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "cannot encode FLAC stream (%s)",
1037 +#ifdef LEGACY_FLAC
1038 FLAC__SeekableStreamEncoderStateString[ctx->state.s_flac]);
1039 +#else
1040 + FLAC__StreamEncoderStateString[ctx->state.s_flac]);
1041 +#endif
1042 }
1043 flac_session_close();
1044 return -1;
1045 }
1046
1047 +#ifdef LEGACY_FLAC
1048 if (!FLAC__seekable_stream_encoder_process_interleaved(ctx->encoder.flac.s_stream, oggbuf,
1049 +#else
1050 + if (!FLAC__stream_encoder_process_interleaved(ctx->encoder.flac.s_stream, oggbuf,
1051 +#endif
1052 nbytes / nch / 2 )) {
1053 ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "cannot encode FLAC stream");
1054 flac_session_close();
1055 @@ -812,9 +916,8 @@
1056 flac_session_close();
1057 return;
1058 }
1059 -
1060 - if (flac_options.isogg) {
1061 #ifdef AU_OGGFLAC
1062 + if (flac_options.isogg) {
1063 if ((ctx->state.ogg = OggFLAC__stream_encoder_get_state(ctx->encoder.ogg.stream)) != OggFLAC__STREAM_ENCODER_OK) {
1064 ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "OggFLAC stream encoder is invalid (%s)",
1065 OggFLAC__StreamEncoderStateString[ctx->state.ogg]);
1066 @@ -824,9 +927,17 @@
1067 else
1068 #endif /* AU_OGGFLAC */
1069 if (flac_options.seekable) {
1070 +#ifdef LEGACY_FLAC
1071 if ((ctx->state.s_flac = FLAC__seekable_stream_encoder_get_state(ctx->encoder.flac.s_stream)) != FLAC__SEEKABLE_STREAM_ENCODER_OK) {
1072 +#else
1073 + if ((ctx->state.s_flac = FLAC__stream_encoder_get_state(ctx->encoder.flac.s_stream)) != FLAC__STREAM_ENCODER_OK) {
1074 +#endif
1075 ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "FLAC stream encoder is invalid (%s)",
1076 +#ifdef LEGACY_FLAC
1077 FLAC__SeekableStreamEncoderStateString[ctx->state.s_flac]);
1078 +#else
1079 + FLAC__StreamEncoderStateString[ctx->state.s_flac]);
1080 +#endif
1081 /* fall through */
1082 }
1083 }
1084
1085
1086
1087 1.1 src/patchsets/timidity++/2.13.2/05_all_protos.patch
1088
1089 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/timidity++/2.13.2/05_all_protos.patch?rev=1.1&view=markup
1090 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/timidity++/2.13.2/05_all_protos.patch?rev=1.1&content-type=text/plain
1091
1092 Index: 05_all_protos.patch
1093 ===================================================================
1094 --- TiMidity++-2.13.2/timidity/flac_a.c
1095 +++ TiMidity++-2.13.2/timidity/flac_a.c
1096 @@ -61,6 +61,7 @@
1097 #include "w32_libOGGFLAC_dll_g.h"
1098 #endif
1099
1100 +#include "common.h"
1101 #include "timidity.h"
1102 #include "output.h"
1103 #include "controls.h"
1104
1105
1106
1107 1.1 src/patchsets/timidity++/2.13.2/06_all_params.patch
1108
1109 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/timidity++/2.13.2/06_all_params.patch?rev=1.1&view=markup
1110 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/timidity++/2.13.2/06_all_params.patch?rev=1.1&content-type=text/plain
1111
1112 Index: 06_all_params.patch
1113 ===================================================================
1114 diff -ur TiMidity++-2.13.2.orig/autoconf/arts.m4 TiMidity++-2.13.2/autoconf/arts.m4
1115 --- TiMidity++-2.13.2.orig/autoconf/arts.m4 2002-10-05 06:16:37.000000000 +0300
1116 +++ TiMidity++-2.13.2/autoconf/arts.m4 2009-07-24 11:35:57.000000000 +0300
1117 @@ -9,7 +9,7 @@
1118 dnl AM_PATH_ARTS([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
1119 dnl Test for aRts, and define ARTS_CFLAGS and ARTS_LIBS
1120 dnl
1121 -AC_DEFUN(AM_PATH_ARTS,
1122 +AC_DEFUN([AM_PATH_ARTS],
1123 [dnl
1124 dnl Get the cflags and libraries from the arts-config script
1125 dnl
1126 @@ -156,4 +156,4 @@
1127 AC_SUBST(ARTS_LIBS)
1128 rm -f conf.artstest
1129 ])
1130 -dnl End of aRts
1131 \ No newline at end of file
1132 +dnl End of aRts
1133 diff -ur TiMidity++-2.13.2.orig/autoconf/vorbis.m4 TiMidity++-2.13.2/autoconf/vorbis.m4
1134 --- TiMidity++-2.13.2.orig/autoconf/vorbis.m4 2002-07-06 17:38:06.000000000 +0300
1135 +++ TiMidity++-2.13.2/autoconf/vorbis.m4 2009-07-24 11:32:13.000000000 +0300
1136 @@ -5,7 +5,7 @@
1137 dnl AM_PATH_VORBIS([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
1138 dnl Test for libvorbis, and define VORBIS_CFLAGS and VORBIS_LIBS
1139 dnl
1140 -AC_DEFUN(AM_PATH_VORBIS,
1141 +AC_DEFUN([AM_PATH_VORBIS],
1142 [dnl
1143 dnl Get the cflags and libraries
1144 dnl
1145 diff -ur TiMidity++-2.13.2.orig/configure.in TiMidity++-2.13.2/configure.in
1146 --- TiMidity++-2.13.2.orig/configure.in 2004-10-03 15:39:52.000000000 +0300
1147 +++ TiMidity++-2.13.2/configure.in 2009-07-24 12:26:04.000000000 +0300
1148 @@ -1925,10 +1925,10 @@
1149
1150 AM_CONDITIONAL(W32READDIR, test "x$W32READDIR" = "xyes")
1151
1152 -SET_UNIQ_WORDS(LDFLAGS,$LDFLAGS)
1153 -SET_UNIQ_WORDS(SHLDFLAGS,$SHLDFLAGS)
1154 -SET_UNIQ_WORDS(CFLAGS,$EXTRACFLAGS $CFLAGS)
1155 -SET_UNIQ_WORDS(CPPFLAGS,$CPPFLAGS $EXTRADEFS)
1156 +LDFLAGS="$LDFLAGS"
1157 +SHLDFLAGS="$SHLDFLAGS"
1158 +CFLAGS="$EXTRACFLAGS $CFLAGS"
1159 +CPPFLAGS="$CPPFLAGS $EXTRADEFS"
1160
1161 if test "x$oss_device" != x; then
1162 AC_DEFINE_UNQUOTED(OSS_DEVICE,"$oss_device", oss device name)
1163
1164
1165
1166 1.1 src/patchsets/timidity++/2.13.2/07_all_speex.patch
1167
1168 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/timidity++/2.13.2/07_all_speex.patch?rev=1.1&view=markup
1169 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/timidity++/2.13.2/07_all_speex.patch?rev=1.1&content-type=text/plain
1170
1171 Index: 07_all_speex.patch
1172 ===================================================================
1173 diff -ur TiMidity++-2.13.2.orig/timidity/speex_a.c TiMidity++-2.13.2/timidity/speex_a.c
1174 --- TiMidity++-2.13.2.orig/timidity/speex_a.c 2004-04-23 11:18:04.000000000 +0300
1175 +++ TiMidity++-2.13.2/timidity/speex_a.c 2010-05-03 23:47:50.000000000 +0300
1176 @@ -33,8 +33,8 @@
1177 #include <fcntl.h>
1178 #endif
1179
1180 -#include <speex.h>
1181 -#include <speex_header.h>
1182 +#include <speex/speex.h>
1183 +#include <speex/speex_header.h>
1184 #include <ogg/ogg.h>
1185
1186 #include "timidity.h"
1187
1188
1189
1190 1.1 src/patchsets/timidity++/2.13.2/08_all_Wimplicit-function-declaration.patch
1191
1192 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/timidity++/2.13.2/08_all_Wimplicit-function-declaration.patch?rev=1.1&view=markup
1193 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/timidity++/2.13.2/08_all_Wimplicit-function-declaration.patch?rev=1.1&content-type=text/plain
1194
1195 Index: 08_all_Wimplicit-function-declaration.patch
1196 ===================================================================
1197 http://bugs.gentoo.org/show_bug.cgi?id=309713
1198
1199 diff -ur TiMidity++-2.13.2.orig/timidity/effect.c TiMidity++-2.13.2/timidity/effect.c
1200 --- TiMidity++-2.13.2.orig/timidity/effect.c 2004-03-25 07:51:51.000000000 +0200
1201 +++ TiMidity++-2.13.2/timidity/effect.c 2010-05-03 23:52:47.000000000 +0300
1202 @@ -29,6 +29,10 @@
1203 #include "config.h"
1204 #endif /* HAVE_CONFIG_H */
1205
1206 +#ifdef HAVE_STDLIB_H
1207 +#include <stdlib.h>
1208 +#endif /* HAVE_STDLIB_H */
1209 +
1210 #ifndef NO_STRING_H
1211 #include <string.h>
1212 #else
1213 diff -ur TiMidity++-2.13.2.orig/timidity/sndfont.c TiMidity++-2.13.2/timidity/sndfont.c
1214 --- TiMidity++-2.13.2.orig/timidity/sndfont.c 2010-05-03 23:48:44.000000000 +0300
1215 +++ TiMidity++-2.13.2/timidity/sndfont.c 2010-05-03 23:51:09.000000000 +0300
1216 @@ -55,6 +55,7 @@
1217 #include "output.h"
1218 #include "filter.h"
1219 #include "resample.h"
1220 +#include "freq.h"
1221
1222 #define FILENAME_NORMALIZE(fname) url_expand_home_dir(fname)
1223 #define FILENAME_REDUCED(fname) url_unexpand_home_dir(fname)
1224 diff -ur TiMidity++-2.13.2.orig/timidity/speex_a.c TiMidity++-2.13.2/timidity/speex_a.c
1225 --- TiMidity++-2.13.2.orig/timidity/speex_a.c 2010-05-03 23:49:28.000000000 +0300
1226 +++ TiMidity++-2.13.2/timidity/speex_a.c 2010-05-03 23:53:29.000000000 +0300
1227 @@ -45,6 +45,7 @@
1228 #include "playmidi.h"
1229 #include "readmidi.h"
1230 #include "miditrace.h"
1231 +#include "common.h"
1232
1233 static int open_output(void); /* 0=success, 1=warning, -1=fatal error */
1234 static void close_output(void);
1235
1236
1237
1238 1.1 src/patchsets/timidity++/2.13.2/series
1239
1240 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/timidity++/2.13.2/series?rev=1.1&view=markup
1241 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/timidity++/2.13.2/series?rev=1.1&content-type=text/plain
1242
1243 Index: series
1244 ===================================================================
1245 01_all_exiterror.patch
1246 02_all_gtk26.patch
1247 03_all_gcc4.patch
1248 04_all_flac.patch
1249 05_all_protos.patch
1250 06_all_params.patch
1251 07_all_speex.patch
1252 08_all_Wimplicit-function-declaration.patch