Mercurial > hg > dmlib
comparison minijss/jssplr.h @ 2586:9807ae37ad69
Require stdbool.h, we require C11 now.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 08 Dec 2022 15:59:22 +0200 |
parents | ffa540ec354d |
children |
comparison
equal
deleted
inserted
replaced
2585:ef6c826c5b7a | 2586:9807ae37ad69 |
---|---|
37 | 37 |
38 // Player envelope data | 38 // Player envelope data |
39 typedef struct | 39 typedef struct |
40 { | 40 { |
41 int frame, value; | 41 int frame, value; |
42 BOOL exec; | 42 bool exec; |
43 } JSSPlayerEnvelope; | 43 } JSSPlayerEnvelope; |
44 | 44 |
45 | 45 |
46 typedef struct | 46 typedef struct |
47 { | 47 { |
54 { | 54 { |
55 JSSPlayerEnvelope volumeEnv, panningEnv; | 55 JSSPlayerEnvelope volumeEnv, panningEnv; |
56 | 56 |
57 JSSPlayerVData vibrato, tremolo; | 57 JSSPlayerVData vibrato, tremolo; |
58 | 58 |
59 BOOL keyOff; | 59 bool keyOff; |
60 | 60 |
61 JSSInstrument *instrument; // Instrument | 61 JSSInstrument *instrument; // Instrument |
62 JSSExtInstrument *extInstrument; // ExtInstrument | 62 JSSExtInstrument *extInstrument; // ExtInstrument |
63 int ninstrument, | 63 int ninstrument, |
64 nextInstrument, | 64 nextInstrument, |
116 order, | 116 order, |
117 npattern, | 117 npattern, |
118 row, | 118 row, |
119 globalVol, | 119 globalVol, |
120 options; // Playing option flags | 120 options; // Playing option flags |
121 BOOL isPlaying; // Are we playing? | 121 bool isPlaying; // Are we playing? |
122 | 122 |
123 int newOrder, // NEW order number | 123 int newOrder, // NEW order number |
124 newRow; // NEW row number | 124 newRow; // NEW row number |
125 BOOL newOrderSet, // TRUE if new order has been set | 125 bool newOrderSet, // true if new order has been set |
126 newRowSet; // TRUE if new row has been set | 126 newRowSet; // true if new row has been set |
127 | 127 |
128 int patternDelay, // Pattern delay tick-counter | 128 int patternDelay, // Pattern delay tick-counter |
129 lastPatLoopRow; // Latest set pattern loop row (any channel) | 129 lastPatLoopRow; // Latest set pattern loop row (any channel) |
130 | 130 |
131 BOOL jumpFlag, // Pattern jump flag | 131 bool jumpFlag, // Pattern jump flag |
132 breakFlag; // Pattern break flag | 132 breakFlag; // Pattern break flag |
133 | 133 |
134 // All channels for this player | 134 // All channels for this player |
135 // int nchannels; | 135 // int nchannels; |
136 JSSPlayerChannel channels[jsetNChannels]; | 136 JSSPlayerChannel channels[jsetNChannels]; |