ScummVM API documentation
stream_break.h
1 
2 /* ScummVM - Graphic Adventure Engine
3  *
4  * ScummVM is the legal property of its developers, whose names
5  * are too numerous to list here. Please refer to the COPYRIGHT
6  * file distributed with this source distribution.
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef M4_BURGER_STREAM_BREAK_H
24 #define M4_BURGER_STREAM_BREAK_H
25 
26 #include "m4/m4_types.h"
27 #include "m4/wscript/ws_machine.h"
28 
29 namespace M4 {
30 namespace Burger {
31 
33  int32 frame;
34  const char *sound;
35  int32 channel;
36  int32 volume;
37  int32 trigger;
38  uint32 flags;
39  const int32 *variable;
40  int32 value;
41 };
42 #define STREAM_BREAK_END { -1, nullptr, 0, 0, NO_TRIGGER, 0, nullptr, 0 }
43 
44 // Flags for series_stream_with_breaks and series_play_with_breaks
45 #define DIGI_LOOP 1024 // these must be more than the series play flags
46 #define DIGI_STOP 2048
47 
49  int32 _my_stream_break_index = 0; // Holds which line of the list currently waiting for a stream break
50  const seriesStreamBreak *_my_stream_break_list = nullptr; // Holds the list of breaks for digi plays
51  const seriesStreamBreak *_my_stream_break = nullptr;
52  machine *_my_stream_viewer = nullptr;
53 };
54 
55 machine *series_stream_with_breaks(const seriesStreamBreak list[], const char *name, int32 framerate, frac16 depth, int32 trigger);
56 void digi_preload_stream_breaks(const seriesStreamBreak list[]);
57 void digi_unload_stream_breaks(const seriesStreamBreak list[]);
58 void handle_series_stream_break();
59 
64 void palette_prep_for_stream();
65 
66 } // namespace Burger
67 } // namespace M4
68 
69 #endif
Definition: ws_machine.h:130
Definition: stream_break.h:32
intptr frac16
Definition: m4_types.h:46
Definition: database.h:28
Definition: stream_break.h:48