source: GTP/trunk/App/Games/Jungle_Rumble/src/SoundNode.h @ 1378

Revision 1378, 739 bytes checked in by giegl, 18 years ago (diff)

GTPD - Jungle Rumble - integrate into GTP SVN structure

Line 
1#pragma once
2#include "Node.h"
3#include "Vector.h"
4#include "fmod.h"
5#include <string>
6
7class SoundNode :
8        public Node
9{
10public:
11
12        SoundNode(void);
13        ~SoundNode(void);
14
15        bool loadFile(std::string filename, bool loop);
16        void play();
17        void stop();
18        FSOUND_SAMPLE* getSample();
19        int getChannel();
20
21        void update(float dt);
22        void setKillSoundNodeAfterPlayed(bool _kill);
23        float getTimeToPlay();
24        void setVolume(float _vol);
25        void setSceneAlpha(float _alpha);
26        virtual void killMe();
27        void setPosition(Vector &_pos);
28
29        virtual Node* clone();
30protected:
31        bool loop;
32        bool kill;
33        bool playing;
34        FSOUND_SAMPLE *soundSample;
35        int channel;
36        float timeToPlaySample;
37        float vol;
38
39        Vector vel;
40        Vector oldPos;
41};
Note: See TracBrowser for help on using the repository browser.