timidity/instrum.h
author Sam Lantinga <slouken@libsdl.org>
Mon, 12 Nov 2018 16:54:24 -0800
changeset 925 5945988b4a41
parent 782 e7d3a8f73e88
permissions -rw-r--r--
Fixed bug 4371 - tvOS Simulator devices not listed

Caleb Cornett

In the Xcode-iOS project, when selecting the libSDL_mixer-tvOS target, no tvOS simulators appear in the available device dropdown.

This is easily fixed with the attached patch.
     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    instrum.h
    10 
    11    */
    12 
    13 /* Bits in modes: */
    14 #define MODES_16BIT	(1<<0)
    15 #define MODES_UNSIGNED	(1<<1)
    16 #define MODES_LOOPING	(1<<2)
    17 #define MODES_PINGPONG	(1<<3)
    18 #define MODES_REVERSE	(1<<4)
    19 #define MODES_SUSTAIN	(1<<5)
    20 #define MODES_ENVELOPE	(1<<6)
    21 
    22 /* A hack to delay instrument loading until after reading the
    23    entire MIDI file. */
    24 #define MAGIC_LOAD_INSTRUMENT ((Instrument *) (-1))
    25 
    26 #define SPECIAL_PROGRAM -1
    27 
    28 extern int load_missing_instruments(MidiSong *song);
    29 extern void free_instruments(MidiSong *song);
    30 extern int set_default_instrument(MidiSong *song, char *name);