Codota Logo
AudioSource.setChannel
Code IndexAdd Codota to your IDE (free)

How to use
setChannel
method
in
com.jme3.audio.AudioSource

Best Java code snippets using com.jme3.audio.AudioSource.setChannel (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: jMonkeyEngine/jmonkeyengine

src.setChannel(-1);
clearChannel(i);
freeChannel(i);
origin: jMonkeyEngine/jmonkeyengine

public void stopSource(AudioSource src) {
  synchronized (threadLock) {
    if (audioDisabled) {
      return;
    }
    if (src.getStatus() != Status.Stopped) {
      int chan = src.getChannel();
      assert chan != -1; // if it's not stopped, must have id
      src.setStatus(Status.Stopped);
      src.setChannel(-1);
      clearChannel(chan);
      freeChannel(chan);
      
      if (src.getAudioData() instanceof AudioStream) {
        // If the stream is seekable, then rewind it.
        // Otherwise, close it, as it is no longer valid.
        AudioStream stream = (AudioStream)src.getAudioData();
        if (stream.isSeekable()) {
          stream.setTime(0);
        } else {
          stream.close();
        }
      }
    }
  }
}
origin: jMonkeyEngine/jmonkeyengine

src.setChannel(index);
origin: org.jmonkeyengine/jme3-core

src.setChannel(-1);
clearChannel(i);
freeChannel(i);
origin: org.jmonkeyengine/jme3-core

public void stopSource(AudioSource src) {
  synchronized (threadLock) {
    if (audioDisabled) {
      return;
    }
    if (src.getStatus() != Status.Stopped) {
      int chan = src.getChannel();
      assert chan != -1; // if it's not stopped, must have id
      src.setStatus(Status.Stopped);
      src.setChannel(-1);
      clearChannel(chan);
      freeChannel(chan);
      
      if (src.getAudioData() instanceof AudioStream) {
        // If the stream is seekable, then rewind it.
        // Otherwise, close it, as it is no longer valid.
        AudioStream stream = (AudioStream)src.getAudioData();
        if (stream.isSeekable()) {
          stream.setTime(0);
        } else {
          stream.close();
        }
      }
    }
  }
}
origin: org.jmonkeyengine/jme3-core

src.setChannel(index);
com.jme3.audioAudioSourcesetChannel

Javadoc

Do not use.

Popular methods of AudioSource

  • getStatus
  • getAudioData
  • getChannel
    Do not use.
  • getDirection
  • getDryFilter
  • getInnerAngle
  • getMaxDistance
  • getOuterAngle
  • getPitch
  • getPosition
  • getRefDistance
  • getReverbFilter
  • getRefDistance,
  • getReverbFilter,
  • getTimeOffset,
  • getVelocity,
  • getVolume,
  • isDirectional,
  • isLooping,
  • isPositional,
  • isReverbEnabled

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • setContentView (Activity)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now