blob: 7b05cb17ff29e0b5a4859145cf10aa3f9f3682da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "AudioSource.h"
using namespace crepe;
using namespace std;
AudioSource::AudioSource(game_object_id_t id, const Asset & src)
: Component(id),
source(src) {}
void AudioSource::play(bool looping) {
this->loop = looping;
this->oneshot_play = true;
}
void AudioSource::stop() { this->oneshot_stop = true; }
|