Class OpenJFXGwtJ2clMusic

java.lang.Object
dev.webfx.kit.platform.audio.spi.impl.openjfxgwtj2cl.OpenJFXGwtJ2clMusic
All Implemented Interfaces:
dev.webfx.platform.audio.Audio

public class OpenJFXGwtJ2clMusic extends Object implements dev.webfx.platform.audio.Audio
Author:
Bruno Salmon
  • Constructor Details

    • OpenJFXGwtJ2clMusic

      public OpenJFXGwtJ2clMusic(Media media)
  • Method Details

    • setLooping

      public void setLooping(boolean looping)
      Specified by:
      setLooping in interface dev.webfx.platform.audio.Audio
    • setVolume

      public void setVolume(double volume)
      Specified by:
      setVolume in interface dev.webfx.platform.audio.Audio
    • play

      public void play()
      Specified by:
      play in interface dev.webfx.platform.audio.Audio
    • pause

      public void pause()
      Specified by:
      pause in interface dev.webfx.platform.audio.Audio
    • stop

      public void stop()
      Specified by:
      stop in interface dev.webfx.platform.audio.Audio
    • dispose

      public void dispose()
      Specified by:
      dispose in interface dev.webfx.platform.audio.Audio
    • isDisposed

      public boolean isDisposed()
      Specified by:
      isDisposed in interface dev.webfx.platform.audio.Audio
    • setCycleCount

      public void setCycleCount(int cycleCount)
      Specified by:
      setCycleCount in interface dev.webfx.platform.audio.Audio
    • isPlaying

      public boolean isPlaying()
      Specified by:
      isPlaying in interface dev.webfx.platform.audio.Audio
    • getCurrentTimeMillis

      public long getCurrentTimeMillis()
      Specified by:
      getCurrentTimeMillis in interface dev.webfx.platform.audio.Audio
    • supportsSpectrumAnalysis

      public boolean supportsSpectrumAnalysis()
      Specified by:
      supportsSpectrumAnalysis in interface dev.webfx.platform.audio.Audio
    • setAudioSpectrumInterval

      public void setAudioSpectrumInterval(double value)
      Specified by:
      setAudioSpectrumInterval in interface dev.webfx.platform.audio.Audio
    • setAudioSpectrumNumBands

      public void setAudioSpectrumNumBands(int value)
      Specified by:
      setAudioSpectrumNumBands in interface dev.webfx.platform.audio.Audio
    • setAudioSpectrumListener

      public void setAudioSpectrumListener(dev.webfx.platform.audio.AudioSpectrumListener listener)
      Specified by:
      setAudioSpectrumListener in interface dev.webfx.platform.audio.Audio