Carpenter Engine
A C++ game engine with a build once run anywhere solution
Loading...
Searching...
No Matches
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
10namespace 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
An abstract C++ class used to hold the information of an audio file.
Definition Audio.hpp:39
void Play()
Plays the audio file.
Definition Audio.cpp:19