Logo
Public Member Functions | Static Public Member Functions | List of all members
SharpKmyAudio.Sound Class Reference

Public Member Functions

void Release ()
 
bool play (SurroundMode surroundMode, VolumeRollOffType volumeRollOff, float minimumDistance, float maximumDistance)
 
bool play (bool loop, int typeIndex, SurroundMode surroundMode, VolumeRollOffType volumeRollOff, float minimumDistance, float maximumDistance)
 
void stop ()
 
void pause ()
 
void setLoopInfo (int start, int end)
 
void setPan (float pan)
 
void setVolume (float volume)
 
void setTempo (float tempo)
 
float getPan ()
 
float getVolume ()
 
float getTempo ()
 
void setPosition (SharpKmyMath.Vector3 pos)
 
bool isPlaying ()
 
bool isAvailable ()
 
Int16[] getWaveform ()
 
UInt32 getSamplingRate ()
 
int getChannelCount ()
 

Static Public Member Functions

static Sound load (string path)
 
static void initializeSETypeCount (int[] seCounts)
 
static void setListenerMatrix (SharpKmyMath.Matrix4 mtx)
 
static void setDistanceScaleMaxDistance (float distanceOfZeroVolume)
 

Member Function Documentation

◆ getChannelCount()

int SharpKmyAudio.Sound.getChannelCount ( )

◆ getPan()

float SharpKmyAudio.Sound.getPan ( )

◆ getSamplingRate()

UInt32 SharpKmyAudio.Sound.getSamplingRate ( )

◆ getTempo()

float SharpKmyAudio.Sound.getTempo ( )

◆ getVolume()

float SharpKmyAudio.Sound.getVolume ( )

◆ getWaveform()

Int16[] SharpKmyAudio.Sound.getWaveform ( )

◆ initializeSETypeCount()

static void SharpKmyAudio.Sound.initializeSETypeCount ( int[]  seCounts)
static

◆ isAvailable()

bool SharpKmyAudio.Sound.isAvailable ( )

◆ isPlaying()

bool SharpKmyAudio.Sound.isPlaying ( )

◆ load()

static Sound SharpKmyAudio.Sound.load ( string  path)
static

◆ pause()

void SharpKmyAudio.Sound.pause ( )

◆ play() [1/2]

bool SharpKmyAudio.Sound.play ( bool  loop,
int  typeIndex,
SurroundMode  surroundMode,
VolumeRollOffType  volumeRollOff,
float  minimumDistance,
float  maximumDistance 
)

◆ play() [2/2]

bool SharpKmyAudio.Sound.play ( SurroundMode  surroundMode,
VolumeRollOffType  volumeRollOff,
float  minimumDistance,
float  maximumDistance 
)

◆ Release()

void SharpKmyAudio.Sound.Release ( )

◆ setDistanceScaleMaxDistance()

static void SharpKmyAudio.Sound.setDistanceScaleMaxDistance ( float  distanceOfZeroVolume)
static

◆ setListenerMatrix()

static void SharpKmyAudio.Sound.setListenerMatrix ( SharpKmyMath.Matrix4  mtx)
static

◆ setLoopInfo()

void SharpKmyAudio.Sound.setLoopInfo ( int  start,
int  end 
)

◆ setPan()

void SharpKmyAudio.Sound.setPan ( float  pan)

◆ setPosition()

void SharpKmyAudio.Sound.setPosition ( SharpKmyMath.Vector3  pos)

◆ setTempo()

void SharpKmyAudio.Sound.setTempo ( float  tempo)

◆ setVolume()

void SharpKmyAudio.Sound.setVolume ( float  volume)

◆ stop()

void SharpKmyAudio.Sound.stop ( )