timidity/common.h
author Sam Lantinga <slouken@libsdl.org>
Sat, 31 Dec 2011 10:27:48 -0500
changeset 518 8bc9b5fd2aae
parent 449 3f60c121d643
child 782 e7d3a8f73e88
permissions -rw-r--r--
Happy New Year!
     1 /*
     2     TiMidity -- Experimental MIDI to WAVE converter
     3     Copyright (C) 1995 Tuukka Toivonen <toivonen@clinet.fi>
     4 
     5     This program is free software; you can redistribute it and/or modify
     6     it under the terms of the Perl Artistic License, available in COPYING.
     7  */
     8 
     9 #include <limits.h>
    10 
    11 #ifndef PATH_MAX   /* GNU Hurd doesn't limit path size, thus no PATH_MAX... */
    12 #define PATH_MAX 1024   /* ...so we'll just impose an arbitrary limit. */
    13 #endif
    14 
    15 extern char *program_name, current_filename[];
    16 
    17 extern FILE *msgfp;
    18 
    19 extern int num_ochannels;
    20 
    21 #define MULTICHANNEL_OUT
    22 #define MAX_OUT_CHANNELS 6
    23 
    24 typedef struct {
    25   char *path;
    26   void *next;
    27 } PathList;
    28 
    29 /* Noise modes for open_file */
    30 #define OF_SILENT	0
    31 #define OF_NORMAL	1
    32 #define OF_VERBOSE	2
    33 
    34 extern FILE *open_file(const char *name, int decompress, int noise_mode);
    35 extern void add_to_pathlist(const char *s);
    36 extern void free_pathlist(void);
    37 extern void close_file(FILE *fp);
    38 extern void skip(FILE *fp, size_t len);
    39 extern void *safe_malloc(size_t count);