123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #include <stddef.h>
- #include "Private.h"
- #include "Sound.h"
- #include "Group.h"
- Sound::Sound(EmSample* sample, float dist, bool b3D) {
- m_b3D = b3D;
- m_fDistance = dist;
- p_Sample = sample;
- m_vtxSrc.x = 0;
- m_vtxSrc.y = 0;
- m_vtxSrc.z = 0;
- p_Parent = NULL;
- }
- void Sound::setParent(Group* g) {
- p_Parent = g;
- }
- void Sound::play(bool loop) {
- m_bLoop = loop;
- if (p_Sample == NULL) return;
- }
- void Sound::adjust() {
- EM_COUT("Sound::adjust()" << endl, 1);
- if (!m_b3D) return;
- if (p_Sample == NULL) return;
-
-
- }
|