1 #ifndef NSOUNDLISTENER_H
2 #define NSOUNDLISTENER_H
10 class nSoundListener : public QObject
14 Q_PROPERTY(nSceneCamera * sourceCamera READ sourceCamera WRITE setSourceCamera)
16 Q_PROPERTY(bool updating READ isUpdating WRITE setUpdating)
18 explicit nSoundListener(nSoundSystem * parent);
21 nSceneCamera * sourceCamera(){return m_camera;}
22 void setSourceCamera(nSceneCamera * cam);
25 bool isUpdating(){return m_updating;}
26 void setUpdating(bool b){m_updating = b;}
32 void cameraDestroyed();
34 void update(qreal frameTime);
35 void updateManual(QVector3D position, QVector3D direction, QVector3D up, QVector3D velocity);
39 nSceneCamera * m_camera;
45 #endif // NSOUNDLISTENER_H