-
Notifications
You must be signed in to change notification settings - Fork 1
/
Sound.h
37 lines (28 loc) · 1.14 KB
/
Sound.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
This file is part of the Sound library.
Copyright (C) 2008-2012 Benjamin Eikel <[email protected]>
Copyright (C) 2008-2012 Claudius Jähn <[email protected]>
Copyright (C) 2008-2012 Ralf Petring <[email protected]>
Copyright (C) 2019 Sascha Brandt <[email protected]>
This library is subject to the terms of the Mozilla Public License, v. 2.0.
You should have received a copy of the MPL along with this library; see the
file LICENSE. If not, you can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef SOUND_H
#define SOUND_H
#include <string>
namespace Sound {
class Buffer;
class Listener;
class Source;
SOUNDAPI bool initSoundSystem();
SOUNDAPI void shutDownSoundSystem();
SOUNDAPI bool checkErrorStatus(const char * file, int line, const std::string & msg = "");
SOUNDAPI std::string getDeviceName();
SOUNDAPI Listener * getListener();
SOUNDAPI Source * createSource();
SOUNDAPI Buffer * createNoise(unsigned int freq,unsigned int size);
SOUNDAPI Buffer * createRectangleSound(unsigned int width, unsigned int freq,unsigned int size);
SOUNDAPI Buffer * createSilence(unsigned int freq,unsigned int size);
}
#endif // SOUND_H