Package fmod.fmod
Class SoundEmitter
java.lang.Object
fmod.fmod.BaseSoundEmitter
fmod.fmod.SoundEmitter
public class SoundEmitter extends BaseSoundEmitter
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoundEmitter.Sound
-
Field Summary
Fields Modifier and Type Field Description boolean
ambient
boolean
do3D
EmitterType
emitterType
java.util.ArrayList
Instances
float
lx
float
ly
float
lz
int
max
float
minrange
IsoGameCharacter
parent
float
reverbfactor
float
reverbmaxrange
java.util.ArrayDeque
SoundStack
java.util.ArrayList
ToStart
float
x
float
y
float
z
-
Constructor Summary
Constructors Constructor Description SoundEmitter()
-
Method Summary
Modifier and Type Method Description boolean
isEmpty()
boolean
isPlaying(long channel)
boolean
isPlaying(java.lang.String alias)
long
playAmbientLoopedImpl(java.lang.String file)
long
playAmbientSound(java.lang.String name)
long
playSound(java.lang.String file)
long
playSound(java.lang.String file, boolean doWorldSound)
long
playSound(java.lang.String file, int x, int y, int z)
long
playSound(java.lang.String file, IsoGridSquare square)
long
playSound(java.lang.String file, IsoObject parent)
long
playSoundImpl(java.lang.String file, boolean doWorldSound, IsoObject parent)
long
playSoundImpl(java.lang.String file, IsoGridSquare square)
long
playSoundImpl(java.lang.String file, IsoObject parent)
long
playSoundLooped(java.lang.String file)
long
playSoundLoopedImpl(java.lang.String file)
void
randomStart()
void
set3D(long handle, boolean is3D)
void
setPitch(long handle, float pitch)
void
setPos(float x, float y, float z)
void
setVolume(long handle, float volume)
void
setVolumeAll(float volume)
void
stopAll()
int
stopSound(long channel)
void
tick()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
parent
-
max
public int max -
emitterType
-
SoundStack
public java.util.ArrayDeque SoundStack -
x
public float x -
y
public float y -
z
public float z -
lx
public float lx -
ly
public float ly -
lz
public float lz -
do3D
public boolean do3D -
minrange
public float minrange -
reverbmaxrange
public float reverbmaxrange -
reverbfactor
public float reverbfactor -
ambient
public boolean ambient -
Instances
public java.util.ArrayList Instances -
ToStart
public java.util.ArrayList ToStart
-
-
Constructor Details
-
SoundEmitter
public SoundEmitter()
-
-
Method Details
-
randomStart
public void randomStart()- Specified by:
randomStart
in classBaseSoundEmitter
-
setPos
public void setPos(float x, float y, float z)- Specified by:
setPos
in classBaseSoundEmitter
-
stopSound
public int stopSound(long channel)- Specified by:
stopSound
in classBaseSoundEmitter
-
setVolume
public void setVolume(long handle, float volume)- Specified by:
setVolume
in classBaseSoundEmitter
-
setPitch
public void setPitch(long handle, float pitch)- Specified by:
setPitch
in classBaseSoundEmitter
-
set3D
public void set3D(long handle, boolean is3D)- Specified by:
set3D
in classBaseSoundEmitter
-
setVolumeAll
public void setVolumeAll(float volume)- Specified by:
setVolumeAll
in classBaseSoundEmitter
-
stopAll
public void stopAll()- Specified by:
stopAll
in classBaseSoundEmitter
-
playSound
public long playSound(java.lang.String file)- Specified by:
playSound
in classBaseSoundEmitter
-
playSound
public long playSound(java.lang.String file, int x, int y, int z)- Specified by:
playSound
in classBaseSoundEmitter
-
playSound
- Specified by:
playSound
in classBaseSoundEmitter
-
playSoundImpl
- Specified by:
playSoundImpl
in classBaseSoundEmitter
-
playSound
public long playSound(java.lang.String file, boolean doWorldSound)- Specified by:
playSound
in classBaseSoundEmitter
-
playSoundImpl
- Specified by:
playSoundImpl
in classBaseSoundEmitter
-
playSoundLooped
public long playSoundLooped(java.lang.String file)- Specified by:
playSoundLooped
in classBaseSoundEmitter
-
playSoundLoopedImpl
public long playSoundLoopedImpl(java.lang.String file)- Specified by:
playSoundLoopedImpl
in classBaseSoundEmitter
-
playSound
- Specified by:
playSound
in classBaseSoundEmitter
-
playSoundImpl
- Specified by:
playSoundImpl
in classBaseSoundEmitter
-
playAmbientSound
public long playAmbientSound(java.lang.String name)- Specified by:
playAmbientSound
in classBaseSoundEmitter
-
tick
public void tick()- Specified by:
tick
in classBaseSoundEmitter
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in classBaseSoundEmitter
-
isPlaying
public boolean isPlaying(long channel)- Specified by:
isPlaying
in classBaseSoundEmitter
-
isPlaying
public boolean isPlaying(java.lang.String alias)- Specified by:
isPlaying
in classBaseSoundEmitter
-
playAmbientLoopedImpl
public long playAmbientLoopedImpl(java.lang.String file)- Specified by:
playAmbientLoopedImpl
in classBaseSoundEmitter
-