mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
055d1b1dd6
git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@4 ea6a568a-9f4f-0410-981a-c910a81bb256
47 lines
1.3 KiB
D
47 lines
1.3 KiB
D
/*
|
|
OpenMW - The completely unofficial reimplementation of Morrowind
|
|
Copyright (C) 2008 Nicolay Korslund
|
|
Email: < korslund@gmail.com >
|
|
WWW: http://openmw.snaptoad.com/
|
|
|
|
This file (audio.d) is part of the OpenMW package.
|
|
|
|
OpenMW is distributed as free software: you can redistribute it
|
|
and/or modify it under the terms of the GNU General Public License
|
|
version 3, as published by the Free Software Foundation.
|
|
|
|
This program 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
|
|
version 3 along with this program. If not, see
|
|
http://www.gnu.org/licenses/ .
|
|
|
|
*/
|
|
|
|
module sound.audio;
|
|
|
|
public import sound.sfx;
|
|
public import sound.music;
|
|
|
|
import sound.audiere;
|
|
|
|
class SoundException : Exception
|
|
{
|
|
this(char[] caller, char[] msg) { super(caller ~ " SoundException: " ~ msg); }
|
|
}
|
|
|
|
MusicManager jukebox;
|
|
MusicManager battleMusic;
|
|
|
|
void initializeSound()
|
|
{
|
|
if(cpp_openDevice())
|
|
throw new SoundException("initializeSound()",
|
|
"Failed to initialize music device");
|
|
jukebox.initialize("Main");
|
|
battleMusic.initialize("Battle");
|
|
}
|