Linux multi-monitor fullscreen support
[ryzomcore.git] / snowballs2 / client / src / sound.h
blob5b40d5b9abf570024061cf799dd6177a57d11713
1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This source file has been modified by the following contributors:
5 // Copyright (C) 2019 Jan BOON (Kaetemi) <jan.boon@kaetemi.be>
6 //
7 // This program is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU Affero General Public License as
9 // published by the Free Software Foundation, either version 3 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU Affero General Public License for more details.
17 // You should have received a copy of the GNU Affero General Public License
18 // along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef SBCLIENT_SOUND_H
21 #define SBCLIENT_SOUND_H
24 // Includes
27 #include <nel/misc/types_nl.h>
28 #include <nel/misc/config_file.h>
30 #include <nel/sound/u_audio_mixer.h>
31 #include <nel/sound/u_listener.h>
32 #include <nel/sound/u_source.h>
34 #include "snowballs_client.h"
35 #include "entities.h"
37 //
38 // Defines
39 //
41 #define SBCLIENT_MUSIC_WAIT "xtarsia_evil-snowballs_wait.ogg"
42 #define SBCLIENT_MUSIC_LOGIN "xtarsia_evil-snowballs_login.ogg"
43 #define SBCLIENT_MUSIC_BACKGROUND "xtarsia_evil-snowballs_beat.ogg" /* "xtarsia_evil-snowballs_game.ogg" */
44 #define SBCLIENT_MUSIC_BACKGROUND_BEAT "xtarsia_evil-snowballs_beat.ogg"
46 namespace SBCLIENT {
49 // External variables
52 #ifdef SBCLIENT_WITH_SOUND
53 extern NLSOUND::UAudioMixer *AudioMixer;
54 //extern NLSOUND::TSoundId SoundId;
55 #endif
58 // External functions
61 //void playMusic(sint32 playlist, sint32 track);
62 //void setMusicVolume(sint32 playlist, float volume);
64 void initSound();
65 void updateSound();
66 void releaseSound();
68 void playMusic(const char *file);
70 //// Set and play a sound on an entity
71 //void playSound(CEntity &entity, NLSOUND::TSoundId id);
73 //// Remove the sound system link to the entity
74 //void deleteSound(CEntity &entity);
76 } /* namespace SBCLIENT */
78 #endif // SBCLIENT_SOUND_H
80 /* End of sound.h */ // duh