de.lessvoid.nifty.sound.SoundSystem Java Examples

The following examples show how to use de.lessvoid.nifty.sound.SoundSystem. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SoundDeviceJme.java    From jmonkeyengine with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Override
public SoundHandle loadSound(SoundSystem soundSystem, String filename) {
    AudioNode an = new AudioNode(assetManager, filename, AudioData.DataType.Buffer);
    an.setPositional(false);
    return new SoundHandleJme(ar, an);
}
 
Example #2
Source File: SoundDeviceJme.java    From jmonkeyengine with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Override
public SoundHandle loadMusic(SoundSystem soundSystem, String filename) {
    return new SoundHandleJme(ar, assetManager, filename);
}
 
Example #3
Source File: SoudDevicenull.java    From niftyeditor with Apache License 2.0 4 votes vote down vote up
@Override
public SoundHandle loadSound(SoundSystem ss, String string) {
    return new SoundHandleNullImpl();
}
 
Example #4
Source File: SoudDevicenull.java    From niftyeditor with Apache License 2.0 4 votes vote down vote up
@Override
public SoundHandle loadMusic(SoundSystem ss, String string) {
    return new SoundHandleNullImpl();
}
 
Example #5
Source File: SoundDeviceJme.java    From MikuMikuStudio with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public SoundHandle loadSound(SoundSystem soundSystem, String filename) {
    AudioNode an = new AudioNode(assetManager, filename, false);
    an.setPositional(false);
    return new SoundHandleJme(ar, an);
}
 
Example #6
Source File: SoundDeviceJme.java    From MikuMikuStudio with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public SoundHandle loadMusic(SoundSystem soundSystem, String filename) {
    return new SoundHandleJme(ar, assetManager, filename);
}