Last change
on this file since 608 was
80,
checked in by Sam Hocevar, 15 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.5 KB
|
Rev | Line | |
---|
[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 SIMPLE_SOUND3D_HH
|
---|
| 10 | #define SIMPLE_SOUND3D_HH
|
---|
| 11 |
|
---|
| 12 | #include "sound/sound3d.hh"
|
---|
| 13 | #include "sound/sound.hh"
|
---|
| 14 |
|
---|
| 15 | class i4_simple_3d_voice_class : public i4_3d_voice_class
|
---|
| 16 | {
|
---|
| 17 | protected:
|
---|
| 18 | i4_voice_class *voc;
|
---|
| 19 | public:
|
---|
| 20 | i4_simple_3d_voice_class(i4_voice_class *_voc, const i4_3d_sound_parameters ¶m) :
|
---|
| 21 | voc(_voc), i4_3d_voice_class(param)
|
---|
| 22 | //{{{
|
---|
| 23 | {
|
---|
| 24 |
|
---|
| 25 | }
|
---|
| 26 | //}}}
|
---|
| 27 |
|
---|
| 28 | virtual void set_completer(completion_function_type completer, void *_context)
|
---|
| 29 | //{{{
|
---|
| 30 | {
|
---|
| 31 | voc->set_completer((i4_voice_class::completion_function_type)completer,_context);
|
---|
| 32 | }
|
---|
| 33 | //}}}
|
---|
| 34 | virtual void play();
|
---|
| 35 | virtual void update();
|
---|
| 36 | };
|
---|
| 37 |
|
---|
| 38 | class i4_simple_3d_sound_manager_class : public i4_3d_sound_manager_class
|
---|
| 39 | {
|
---|
| 40 | protected:
|
---|
| 41 | public:
|
---|
| 42 | I4_SOUND_NAME("SimpleSound");
|
---|
| 43 |
|
---|
| 44 | virtual void init();
|
---|
| 45 | virtual void load_sounds(w32 max_sounds);
|
---|
| 46 | virtual i4_3d_voice_class *alloc(i4_sound_id sound_id, const i4_3d_sound_parameters& param);
|
---|
| 47 | };
|
---|
| 48 |
|
---|
| 49 | #endif
|
---|
| 50 |
|
---|
| 51 | //{{{ Emacs Locals
|
---|
| 52 | // Local Variables:
|
---|
| 53 | // folded-file: t
|
---|
| 54 | // End:
|
---|
| 55 | //}}}
|
---|
Note: See
TracBrowser
for help on using the repository browser.