Companion object with utility functionality.
Attributes
- Companion:
- class
- Source:
- CPSound.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- CPSound.type
Members list
Value members
Concrete methods
Shortcut constructor for the sound with specific volume.
Shortcut constructor for the sound with specific volume.
Attributes
- src
RFC-2396 URI as required by
java.net.URI
or 'resource' file. URI should point to a sound file in one of the supported format:AIFF
,AU
orWAV
. Only HTTP, FILE, and JAR URIs are supported.- tags
Optional set of organizational tags. Default is an empty set.
- vol
Audio volume to set. Audio volume range is [0.0, 1.0].
- Source:
- CPSound.scala
Shortcut constructor for the sound.
Shortcut constructor for the sound.
Attributes
- src
RFC-2396 URI as required by
java.net.URI
or 'resource' file. URI should point to a sound file in one of the supported format:AIFF
,AU
orWAV
. Only HTTP, FILE, and JAR URIs are supported.- Source:
- CPSound.scala
Disposes all sounds.
Disposes all sounds.
Attributes
- tags
Optional set of tags to filter the sounds to dispose. If not provided, all sounds will be disposed.
- See also:
- Source:
- CPSound.scala
Loops over all sounds in the system calling given function.
Loops over all sounds in the system calling given function.
Attributes
- f
Function to call on each sounds.
- tags
Optional set of tags to filter the sounds to loop over. If not provided, all sounds will be used.
- Source:
- CPSound.scala
Stops all sounds playback in the system.
Stops all sounds playback in the system.
Attributes
- fadeOutMs
Fade out duration in milliseconds.
- tags
Optional set of tags to filter the sounds to stop. If not provided, all sounds will be stopped.
- See also:
- Source:
- CPSound.scala