Niotso
git revision 558726a9f13d7c3423a683dd2f4323589b66c310
The New Implementation of The Sims Online
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Client
Audio
Audio.hpp
Go to the documentation of this file.
1
/*
2
Niotso - The New Implementation of The Sims Online
3
Audio/Audio.hpp
4
Copyright (c) 2012 Niotso Project <http://niotso.org/>
5
Author(s): Fatbag <X-Fi6@phppoll.org>
6
7
This program is free software: you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation, either version 3 of the License, or
10
(at your option) any later version.
11
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 General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#include "
windows/xaudio2.hpp
"
22
#ifdef PlaySound //defined by the Windows API
23
#undef PlaySound
24
#endif
25
26
struct
PlayableSound_t
{
27
bool
Playing
;
28
uint8_t *
Data
;
29
IXAudio2SourceVoice*
pSourceVoice
;
30
};
31
32
namespace
Audio {
33
int
Initialize
();
34
PlayableSound_t
*
LoadSound
(
const
Sound_t
* Sound);
35
bool
PlaySound
(
PlayableSound_t
* Sound);
36
bool
StopSound
(
PlayableSound_t
* Sound);
37
void
DeleteSound
(
PlayableSound_t
* Sound);
38
void
Shutdown
();
39
}
Generated on Sat Jun 15 2013 03:02:15 for Niotso by
1.8.4