timidity/playmidi.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    playmidi.h
    10 
    11    */
    12 
    13 /* Midi events */
    14 #define ME_NONE 	0
    15 #define ME_NOTEON	1
    16 #define ME_NOTEOFF	2
    17 #define ME_KEYPRESSURE	3
    18 #define ME_MAINVOLUME	4
    19 #define ME_PAN		5
    20 #define ME_SUSTAIN	6
    21 #define ME_EXPRESSION	7
    22 #define ME_PITCHWHEEL	8
    23 #define ME_PROGRAM	9
    24 #define ME_TEMPO	10
    25 #define ME_PITCH_SENS	11
    26 
    27 #define ME_ALL_SOUNDS_OFF	12
    28 #define ME_RESET_CONTROLLERS	13
    29 #define ME_ALL_NOTES_OFF	14
    30 #define ME_TONE_BANK	15
    31 
    32 #define ME_LYRIC	16
    33 
    34 #define ME_EOT		99
    35 
    36 /* Causes the instrument's default panning to be used. */
    37 #define NO_PANNING -1
    38 
    39 /* Voice status options: */
    40 #define VOICE_FREE 0
    41 #define VOICE_ON 1
    42 #define VOICE_SUSTAINED 2
    43 #define VOICE_OFF 3
    44 #define VOICE_DIE 4
    45 
    46 /* Voice panned options: */
    47 #define PANNED_MYSTERY 0
    48 #define PANNED_LEFT 1
    49 #define PANNED_RIGHT 2
    50 #define PANNED_CENTER 3
    51 /* Anything but PANNED_MYSTERY only uses the left volume */
    52 
    53 #define ISDRUMCHANNEL(s, c) (((s)->drumchannels & (1<<(c))))