Class OpenJFXGwtJ2clMusic
java.lang.Object
dev.webfx.kit.platform.audio.spi.impl.openjfxgwtj2cl.OpenJFXGwtJ2clMusic
- All Implemented Interfaces:
dev.webfx.platform.audio.Audio
- Author:
- Bruno Salmon
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
long
boolean
boolean
void
pause()
void
play()
void
setAudioSpectrumInterval
(double value) void
setAudioSpectrumListener
(dev.webfx.platform.audio.AudioSpectrumListener listener) void
setAudioSpectrumNumBands
(int value) void
setCycleCount
(int cycleCount) void
setLooping
(boolean looping) void
setVolume
(double volume) void
stop()
boolean
-
Constructor Details
-
OpenJFXGwtJ2clMusic
-
-
Method Details
-
setLooping
public void setLooping(boolean looping) - Specified by:
setLooping
in interfacedev.webfx.platform.audio.Audio
-
setVolume
public void setVolume(double volume) - Specified by:
setVolume
in interfacedev.webfx.platform.audio.Audio
-
play
public void play()- Specified by:
play
in interfacedev.webfx.platform.audio.Audio
-
pause
public void pause()- Specified by:
pause
in interfacedev.webfx.platform.audio.Audio
-
stop
public void stop()- Specified by:
stop
in interfacedev.webfx.platform.audio.Audio
-
dispose
public void dispose()- Specified by:
dispose
in interfacedev.webfx.platform.audio.Audio
-
isDisposed
public boolean isDisposed()- Specified by:
isDisposed
in interfacedev.webfx.platform.audio.Audio
-
setCycleCount
public void setCycleCount(int cycleCount) - Specified by:
setCycleCount
in interfacedev.webfx.platform.audio.Audio
-
isPlaying
public boolean isPlaying()- Specified by:
isPlaying
in interfacedev.webfx.platform.audio.Audio
-
getCurrentTimeMillis
public long getCurrentTimeMillis()- Specified by:
getCurrentTimeMillis
in interfacedev.webfx.platform.audio.Audio
-
supportsSpectrumAnalysis
public boolean supportsSpectrumAnalysis()- Specified by:
supportsSpectrumAnalysis
in interfacedev.webfx.platform.audio.Audio
-
setAudioSpectrumInterval
public void setAudioSpectrumInterval(double value) - Specified by:
setAudioSpectrumInterval
in interfacedev.webfx.platform.audio.Audio
-
setAudioSpectrumNumBands
public void setAudioSpectrumNumBands(int value) - Specified by:
setAudioSpectrumNumBands
in interfacedev.webfx.platform.audio.Audio
-
setAudioSpectrumListener
public void setAudioSpectrumListener(dev.webfx.platform.audio.AudioSpectrumListener listener) - Specified by:
setAudioSpectrumListener
in interfacedev.webfx.platform.audio.Audio
-