mirror of
https://github.com/rrika/cdcEngineDXHR.git
synced 2024-11-26 23:10:20 +00:00
22 lines
460 B
C++
22 lines
460 B
C++
#include "cdcMath/Math.h" // remove me
|
|
#include "SoundOwner.h"
|
|
#include "SoundPlex.h"
|
|
|
|
namespace cdc {
|
|
|
|
void SoundOwner::SetPosition(Vector pos) {
|
|
controls3d.playbackType |= 0x100;
|
|
controls3d.position[0] = pos.x;
|
|
controls3d.position[1] = pos.y;
|
|
controls3d.position[2] = pos.z;
|
|
controls3d.position[3] = pos.w;
|
|
}
|
|
|
|
void SoundOwner::End(EndType endType) {
|
|
if (!plex) // HACK
|
|
return; // this shouldn't happen, find out why it does
|
|
plex->End(endType);
|
|
}
|
|
|
|
}
|