5#include "Math/Vector3.h"
7namespace XXSharpKmyAudio
21 private ref class Sound
38 kmySound::WaveSound *obj = NULL;
46 static Sound^ load(System::String ^path);
48 bool play(SurroundMode surroundMode, VolumeRollOffType volumeRollOff,
float minimumDistance,
float maximumDistance);
49 bool play(
bool loop,
int typeIndex, SurroundMode surroundMode, VolumeRollOffType volumeRollOff,
float minimumDistance,
float maximumDistance);
52 void setLoopInfo(
int start,
int end);
53 void setPan(
float pan);
54 void setVolume(
float volume);
55 void setTempo(
float tempo);
56 float getPan() {
return pan; }
57 float getVolume() {
return volume; }
58 float getTempo() {
return tempo; }
59 void setPosition(XXSharpKmyMath::Vector3 ^pos);
63 cli::array<s16> ^getWaveform();
64 u32 getSamplingRate() {
return (obj ==
nullptr) ? 0 : obj->getSamplingRate(); }
65 int getChannelCount() {
return (obj ==
nullptr) ? 0 : obj->getChannelCount(); }
67 static void initializeSETypeCount(cli::array<int>^ seCounts);
68 static void setListenerMatrix(XXSharpKmyMath::Matrix4 mtx);
69 static void setDistanceScaleMaxDistance(
float distanceOfZeroVolume);
VolumeRollOffType
Definition: Sound.cs:15
SurroundMode
Definition: Sound.cs:8