Package fmod.fmod
Class SoundBankEmitter
java.lang.Object
fmod.fmod.BaseSoundEmitter
fmod.fmod.SoundBankEmitter
- All Implemented Interfaces:
ICommonSoundEmitter
public class SoundBankEmitter extends BaseSoundEmitter implements ICommonSoundEmitter
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoundBankEmitter.Sound
-
Field Summary
Fields Modifier and Type Field Description EmitterType
emitterType
IsoObject
parent
java.util.ArrayDeque
SoundStack
float
x
float
y
float
z
-
Constructor Summary
Constructors Constructor Description SoundBankEmitter()
-
Method Summary
Modifier and Type Method Description boolean
isEmpty()
boolean
isPlaying(long eventInstance)
boolean
isPlaying(java.lang.String alias)
long
playAmbientLoopedImpl(java.lang.String name)
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 name, 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 eventInstance)
void
tick()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
SoundStack
public java.util.ArrayDeque SoundStack -
x
public float x -
y
public float y -
z
public float z -
emitterType
-
parent
-
-
Constructor Details
-
SoundBankEmitter
public SoundBankEmitter()
-
-
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 interfaceICommonSoundEmitter
- Specified by:
setPos
in classBaseSoundEmitter
-
stopSound
public int stopSound(long eventInstance)- Specified by:
stopSound
in interfaceICommonSoundEmitter
- Specified by:
stopSound
in classBaseSoundEmitter
-
setVolume
public void setVolume(long handle, float volume)- Specified by:
setVolume
in interfaceICommonSoundEmitter
- 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 interfaceICommonSoundEmitter
- 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 interfaceICommonSoundEmitter
- 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
-
playAmbientLoopedImpl
public long playAmbientLoopedImpl(java.lang.String name)- Specified by:
playAmbientLoopedImpl
in classBaseSoundEmitter
-
tick
public void tick()- Specified by:
tick
in interfaceICommonSoundEmitter
- Specified by:
tick
in classBaseSoundEmitter
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceICommonSoundEmitter
- Specified by:
isEmpty
in classBaseSoundEmitter
-
isPlaying
public boolean isPlaying(long eventInstance)- Specified by:
isPlaying
in interfaceICommonSoundEmitter
- Specified by:
isPlaying
in classBaseSoundEmitter
-
isPlaying
public boolean isPlaying(java.lang.String alias)- Specified by:
isPlaying
in interfaceICommonSoundEmitter
- Specified by:
isPlaying
in classBaseSoundEmitter
-