~swag/armagetronad/0.2.9-sty+ct+ap-fork

« back to all changes in this revision

Viewing changes to src/engine/eSound.h

  • Committer: kyle
  • Date: 2009-03-13 04:21:32 UTC
  • mfrom: (563.1.535 armagetronad)
  • Revision ID: racingmasterweb@gmail.com-20090313042132-2uh1r293i8x1l4ze
merging with 0.2.8 r1098

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
void se_SoundInit();
38
38
void se_SoundExit();
39
 
void se_SoundLock();
40
 
void se_SoundUnlock();
 
39
//void se_SoundLock();
 
40
//void se_SoundUnlock();
41
41
void se_SoundPause(bool p);
42
42
void se_SoundMenu();
43
43
 
 
44
//! locks sound while in existence.
 
45
class eSoundLocker
 
46
{
 
47
    eSoundLocker( eSoundLocker const & );
 
48
public:
 
49
    eSoundLocker();
 
50
    ~eSoundLocker();
 
51
};
 
52
 
44
53
class eAudioPos{
45
54
public:
46
55
    Uint32 pos;
59
68
    tString       filename; // the filename
60
69
    tString       filename_alt; // the filename
61
70
    bool          freeData; // manually free data or use SDL_FreeWAV?
 
71
    bool          loadError; //!< was there an error during loading?
62
72
 
63
73
    static eWavData* s_anchor; // list anchor
64
74
 
92
102
};
93
103
 
94
104
class eSoundPlayer{
95
 
    int id;
 
105
    int id; // ID in the global players list
96
106
    eWavData *wav; // the sound we should put out
97
107
    eAudioPos pos[MAX_VIEWERS]; // the position of all viewers
98
108
    bool goon[MAX_VIEWERS];