Tabnine Logo
Sound.setPan
Code IndexAdd Tabnine to your IDE (free)

How to use
setPan
method
in
com.badlogic.gdx.audio.Sound

Best Java code snippets using com.badlogic.gdx.audio.Sound.setPan (Showing top 3 results out of 315)

origin: libgdx/libgdx

  public void changed (ChangeEvent event, Actor actor) {
    sound.setPan(soundId, pan.getValue(), volume.getValue());
    panValue.setText("" + pan.getValue());
  }
});
origin: libgdx/libgdx

  public void clicked (InputEvent event, float x, float y) {
    soundId = sound.play(volume.getValue());
    sound.setPitch(soundId, pitch.getValue());
    sound.setPan(soundId, pan.getValue(), volume.getValue());
  }
});
origin: dsaltares/libgdx-cookbook

data.getSound().setPan(id, pan, volume);
com.badlogic.gdx.audioSoundsetPan

Javadoc

Sets the panning and volume of the sound instance with the given id as returned by #play() or #play(float). If the sound is no longer playing, this has no effect. Note that panning only works for mono sounds, not for stereo sounds!

Popular methods of Sound

  • play
    Plays the sound. If the sound is already playing, it will be played again, concurrently.
  • stop
    Stops the sound instance with the given id as returned by #play() or #play(float). If the sound is n
  • dispose
    Releases all the resources.
  • loop
    Plays the sound, looping. If the sound is already playing, it will be played again, concurrently. Yo
  • setVolume
    Changes the volume of the sound instance with the given id as returned by #play() or #play(float). I
  • pause
    Pauses the sound instance with the given id as returned by #play() or #play(float). If the sound is
  • resume
    Resumes the sound instance with the given id as returned by #play() or #play(float). If the sound is
  • setPitch
    Changes the pitch multiplier of the sound instance with the given id as returned by #play() or #play
  • setLooping
    Sets the sound instance with the given id to be looping. If the sound is no longer playing this has

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now