source: golgotha/src/golg/sound_man.hh @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 11 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 1.2 KB
RevLine 
[80]1/********************************************************************** <BR>
2  This file is part of Crack dot Com's free source code release of
3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
4  information about compiling & licensing issues visit this URL</a>
5  <PRE> If that doesn't help, contact Jonathan Clark at
6  golgotha_source@usa.net (Subject should have "GOLG" in it)
7***********************************************************************/
8
9#ifndef G1_SOUND_MAN_HH
10#define G1_SOUND_MAN_HH
11
12#include "sound/sound.hh"
13#include "memory/que.hh"
14#include "math/transform.hh"
15
16
17class g1_sound_manager_class;
18class g1_sfx_obj_class;
19
20
21class g1_sound_manager_class
22{
23public:
24  g1_sfx_obj_class *sfx_obj_list;
25  i4_bool loop_current_song;
26
27  g1_sound_manager_class();
28  void add_sfx_to_list(g1_sfx_obj_class *sfx);
29  void remove_sfx_from_list(g1_sfx_obj_class *sfx);
30
31  // should be calle by main game every tick, check to see if a new narative should be played
32  // and to update the position of the 3d listener
33  void poll(i4_bool game_is_running);   
34
35  void pause();
36  void unpause();
37  void next_song();
38};
39
40extern g1_sound_manager_class g1_sound_man;
41
42#endif
Note: See TracBrowser for help on using the repository browser.