com.jmex.audio.openal
Class OpenALSystem
java.lang.Object
com.jmex.audio.AudioSystem
com.jmex.audio.openal.OpenALSystem
public class OpenALSystem
- extends AudioSystem
- Version:
- $Id: OpenALSystem.java 4133 2009-03-19 20:40:11Z blaine.dev $
- Author:
- Joshua Slack
- See Also:
AudioSystem
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenALSystem
public OpenALSystem()
getEar
public OpenALEar getEar()
- Specified by:
getEar in class AudioSystem
update
public void update()
- Specified by:
update in class AudioSystem
getNextFreeSource
public OpenALSource getNextFreeSource()
createAudioTrack
public OpenALAudioTrack createAudioTrack(java.net.URL resource,
boolean stream)
- Specified by:
createAudioTrack in class AudioSystem
createAudioTrack
public OpenALAudioTrack createAudioTrack(java.lang.String resourceStr,
boolean stream)
- Specified by:
createAudioTrack in class AudioSystem
setMasterGain
public void setMasterGain(float gain)
- Description copied from class:
AudioSystem
- Set the master volume.
- Specified by:
setMasterGain in class AudioSystem
- Parameters:
gain - 1.0f is default.
cleanup
public void cleanup()
- Overrides:
cleanup in class AudioSystem
setDopplerFactor
public void setDopplerFactor(float amount)
- Description copied from class:
AudioSystem
- Sets the degree of doppler applied.
- Specified by:
setDopplerFactor in class AudioSystem
- Parameters:
amount - multiplying factor. 1.0f is default.
setSpeedOfSound
public void setSpeedOfSound(float unitsPerSecond)
- Description copied from class:
AudioSystem
- Sets the speed of sound using gl units per second
- Specified by:
setSpeedOfSound in class AudioSystem
mute
public void mute()
- Overrides:
mute in class AudioSystem
unmute
public void unmute()
- Overrides:
unmute in class AudioSystem