Carpenter Engine
A C++ game engine with a build once run anywhere solution
Loading...
Searching...
No Matches
src
engine
Audio
Audio.hpp
1
/*
2
* This Source Code Form is subject to the terms of the Mozilla Public
3
* License, v. 2.0. If a copy of the MPL was not distributed with this
4
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
*/
6
7
#ifndef ENGINE_AUDIO
8
#define ENGINE_AUDIO
9
10
namespace
Engine::Audio {
11
22
typedef
enum
{
23
Ready,
24
Queued,
25
Playing
26
} SoundState;
27
39
class
Audio
{
40
protected
:
41
42
const
char
* m_filename;
43
44
public
:
45
49
Audio
(
const
char
* filename);
50
54
void
Play
();
55
};
56
};
57
58
#endif
Engine::Audio::Audio
An abstract C++ class used to hold the information of an audio file.
Definition
Audio.hpp:39
Engine::Audio::Audio::Play
void Play()
Plays the audio file.
Definition
Audio.cpp:19
Generated by
1.9.8