timidity/common.h
author Sam Lantinga <slouken@libsdl.org>
Tue, 17 Oct 2017 21:54:04 -0700
changeset 782 e7d3a8f73e88
parent 518 8bc9b5fd2aae
permissions -rw-r--r--
Merged over timidity from SDL_sound
This has changes to make it safe to load MIDI files as sound chunks and adds the ability to seek in MIDI files
Also cherry picked some patches from the original SDL_mixer timidity to fix buffer overruns and so forth.
     1 /*
     2 
     3     TiMidity -- Experimental MIDI to WAVE converter
     4     Copyright (C) 1995 Tuukka Toivonen <toivonen@clinet.fi>
     5 
     6     This program is free software; you can redistribute it and/or modify
     7     it under the terms of the Perl Artistic License, available in COPYING.
     8 
     9    common.h
    10 */
    11 
    12 typedef struct {
    13   char *path;
    14   void *next;
    15 } PathList;
    16 
    17 extern SDL_RWops *open_file(const char *name);
    18 extern void add_to_pathlist(const char *s);
    19 extern void *safe_malloc(size_t count);
    20 extern void free_pathlist(void);