ScummVM API documentation
sync.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef SCI_SOUND_SYNC_H
23 #define SCI_SOUND_SYNC_H
24 
25 #include "sci/engine/selector.h"
26 #include "sci/engine/vm_types.h"
27 
28 namespace Sci {
29 
30 enum AudioSyncCommands {
31  kSciAudioSyncStart = 0,
32  kSciAudioSyncNext = 1,
33  kSciAudioSyncStop = 2
34 };
35 
36 class Resource;
37 class ResourceManager;
38 class SegManager;
39 
44 class Sync {
45  SegManager *_segMan;
46  ResourceManager *_resMan;
47  Resource *_resource;
48  uint _offset;
49 
50 public:
51  Sync(ResourceManager *resMan, SegManager *segMan);
52  ~Sync();
53 
54  void start(const ResourceId id, const reg_t syncObjAddr);
55  void next(const reg_t syncObjAddr);
56  void stop();
57 };
58 
59 } // End of namespace Sci
60 
61 #endif // SCI_SOUND_SYNC_H
Definition: resource.h:327
Definition: sync.h:44
Definition: resource.h:256
Definition: console.h:28
Definition: seg_manager.h:48
Definition: resource.h:161
Definition: vm_types.h:39