Carpenter Engine
A C++ game engine with a build once run anywhere solution
Loading...
Searching...
No Matches
Sound.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_SOUND
8#define ENGINE_SOUND
9
10#include "Audio.hpp"
11#include "../Utils.hpp"
12
13namespace Engine::Audio {
14
23 class Sound : public Audio {
24 private:
25
31 void m_playThreadMethod(Vec3f position);
32
33 public:
34
38 Sound(const char* filename);
39
43 void Play();
44
55 void Play(Vec3f position);
56 };
57
58}
59
60#endif
An abstract C++ class used to hold the information of an audio file.
Definition Audio.hpp:39
An Audio class that plays a multi-threaded impulse.
Definition Sound.hpp:23
void Play()
Plays the sound normally.
Definition Sound.cpp:29
A 3D vector struct with overloaded operators.
Definition Utils.hpp:86