comparison src/dmengine.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 78a0f44aa8b5
children
comparison
equal deleted inserted replaced
2585:ef6c826c5b7a 2586:9807ae37ad69
156 } DMTimelineEvent; 156 } DMTimelineEvent;
157 157
158 158
159 typedef struct 159 typedef struct
160 { 160 {
161 BOOL enabled; 161 bool enabled;
162 DMTimelinePoints points; 162 DMTimelinePoints points;
163 } DMTimelineCurve; 163 } DMTimelineCurve;
164 164
165 165
166 typedef struct 166 typedef struct
175 typedef struct 175 typedef struct
176 { 176 {
177 int index; // Track index 177 int index; // Track index
178 int layer; // Render order / layer 178 int layer; // Render order / layer
179 char *name; // Name of the timeline track 179 char *name; // Name of the timeline track
180 BOOL enabled; // Enabled? 180 bool enabled; // Enabled?
181 181
182 int nevents, nallocated; // Number of events 182 int nevents, nallocated; // Number of events
183 DMTimelineEvent **events; // Events 183 DMTimelineEvent **events; // Events
184 184
185 DMTimelineCurve composite; // Composite curve (transparency of the "layer") 185 DMTimelineCurve composite; // Composite curve (transparency of the "layer")
242 int frameTime, frameCount, 242 int frameTime, frameCount,
243 startTime, endTime, 243 startTime, endTime,
244 startTimeAudio, offsetTime, 244 startTimeAudio, offsetTime,
245 pauseTime; 245 pauseTime;
246 246
247 BOOL pauseFlag, paused, exitFlag; 247 bool pauseFlag, paused, exitFlag;
248 248
249 // Rendering 249 // Rendering
250 SDL_Window *window; 250 SDL_Window *window;
251 SDL_Renderer *renderer; 251 SDL_Renderer *renderer;
252 252
259 259
260 // Setup information 260 // Setup information
261 int optVidWidth, optVidHeight, 261 int optVidWidth, optVidHeight,
262 optVidDepth, optVFlags, 262 optVidDepth, optVFlags,
263 optVidAspect, optVidSetup; 263 optVidAspect, optVidSetup;
264 BOOL optVidNative; 264 bool optVidNative;
265 265
266 int optResFlags; 266 int optResFlags;
267 char *optPackFilename; 267 char *optPackFilename;
268 268
269 // Audio related 269 // Audio related
279 279
280 // No-sound audio simulation thread stuff 280 // No-sound audio simulation thread stuff
281 SDL_Thread *audioSimThread; 281 SDL_Thread *audioSimThread;
282 Uint8 * audioSimBuf; 282 Uint8 * audioSimBuf;
283 size_t audioSimBufSize; 283 size_t audioSimBufSize;
284 BOOL audioSimDone; 284 bool audioSimDone;
285 int audioSimDelay; 285 int audioSimDelay;
286 286
287 #ifdef DM_USE_JSS 287 #ifdef DM_USE_JSS
288 JSSMixer *jssDev; 288 JSSMixer *jssDev;
289 JSSPlayer *jssPlr; 289 JSSPlayer *jssPlr;