khanat-opennel-code/code/nel/samples/3d/nel_qt/sound_utilities.h
2010-05-06 02:08:41 +02:00

100 lines
2.6 KiB
C++

/**
* CSoundUtilities
* $Id: sound_utilities.h 2222 2010-02-06 19:16:59Z kaetemi $
* \file sound_utilities.h
* \brief CSoundUtilities
* \date 2010-02-06 12:26GMT
* \author Jan Boon (Kaetemi)
*/
/*
* Copyright (C) 2010 by authors
*
* This file is part of NEL QT.
* NEL QT is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* NEL QT is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with NEL QT; see the file COPYING. If not, see
* <http://www.gnu.org/licenses/>.
*/
#ifndef NLQT_SOUND_UTILITIES_H
#define NLQT_SOUND_UTILITIES_H
#include <nel/misc/types_nl.h>
// STL includes
// NeL includes
// Project includes
namespace NLSOUND {
class UAudioMixer;
class CSoundAnimManager;
}
namespace NLQT {
class CConfiguration;
class CInternationalization;
class CGraphicsViewport;
//class CLandscapeUtilities;
//class CPacsUtilities;
/**
* CSoundUtilities
* \brief CSoundUtilities
* \date 2010-02-06 12:26GMT
* \author Jan Boon (Kaetemi)
*/
class CSoundUtilities
{
public:
CSoundUtilities();
virtual ~CSoundUtilities();
void init(CConfiguration *configuration, CInternationalization *internationalization);
void release();
void initGraphics(CGraphicsViewport *graphicsViewport);
void releaseGraphics();
//void initLandscape(CLandscapeUtilities *landscapeUtilities);
//void releaseLandscape();
//void initPacs(CPacsUtilities *pacsUtilities);
//void releasePacs();
void updateSound();
inline NLSOUND::UAudioMixer *getAudioMixer() { return m_AudioMixer; }
inline NLSOUND::CSoundAnimManager *getSoundAnimManager() { return m_SoundAnimManager; }
private:
CConfiguration *m_Configuration;
CInternationalization *m_Internationalization;
CGraphicsViewport *m_GraphicsViewport;
//CLandscapeUtilities *m_LandscapeUtilities;
//CPacsUtilities *m_PacsUtilities;
NLSOUND::UAudioMixer *m_AudioMixer;
NLSOUND::CSoundAnimManager *m_SoundAnimManager;
private:
CSoundUtilities(const CSoundUtilities &);
CSoundUtilities &operator=(const CSoundUtilities &);
}; /* class CSoundUtilities */
} /* namespace NLQT */
#endif /* #ifndef NLQT_SOUND_UTILITIES_H */
/* end of file */