Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members

ISoundListenerSceneNode.hpp

Go to the documentation of this file.
00001 // Copyright (c) 2007-2008 Tomer Nosrati
00002 // This file is part of the "NUSoftware Game Engine".
00003 // For conditions of distribution and use, see copyright notice in nge.hpp
00004 
00005 #pragma once
00006 #ifndef __I_SOUND_LISTENER_SCENE_NODE_H__
00007 #define __I_SOUND_LISTENER_SCENE_NODE_H__
00008 
00009 #include "IAudioDevice.hpp"
00010 #include "Irrlicht/irrlicht.h"
00011 
00012 using namespace irr;
00013 using namespace irr::core;
00014 using namespace irr::scene;
00015 using namespace irr::video;
00016 
00017 namespace nge 
00018 {
00019         namespace audio 
00020         {
00021 
00023                 class ISoundListenerSceneNode : public ISceneNode
00024                 {
00025                 public:
00027                         ISoundListenerSceneNode(ISceneNode* parent, ISceneManager* smgr, 
00028                                 IAudioDevice* audioDevice, u32 currentTime,     s32 id = -1);
00029 
00031                         virtual ~ISoundListenerSceneNode();
00032 
00033                         virtual ESCENE_NODE_TYPE getType();
00034 
00036                         virtual void OnRegisterSceneNode();
00037 
00038                         virtual void render();
00039 
00041                         virtual void OnAnimate(u32 timeMs);
00042 
00044                         const aabbox3d<f32>& getBoundingBox() const;
00045 
00046                 private:
00047                         // Our bounding box for debug drawing
00048                         aabbox3d<f32> m_Box;
00049 
00050                         // The sound engine
00051                         IAudioDevice* m_pSoundEngine;
00052 
00053                         // Doppler support
00054                         vector3df m_PreviousPosition;
00055                         u32 m_PreviousTime;
00056                 };
00057 
00058         } // namespace audio
00059 } // namespace nge
00060 
00061 #endif // __I_SOUND_LISTENER_SCENE_NODE_H__

The NUSoftware Game Engine
The NUSoftware Game Engine Documentation © 2007-2008 by Tomer Nosrati. Generated on Sat Apr 26 16:52:34 2008 by Doxygen (1.5.5)