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.
Value parameters
- 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].
Attributes
- Source
- CPSound.scala
Shortcut constructor for the sound.
Shortcut constructor for the sound.
Value parameters
- 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.
Attributes
- Source
- CPSound.scala
Disposes all sounds.
Disposes all sounds.
Value parameters
- tags
-
Optional set of tags to filter the sounds to dispose. If not provided, all sounds will be disposed.
Attributes
- 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.
Value parameters
- 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.
Attributes
- Source
- CPSound.scala
Stops all sounds playback in the system.
Stops all sounds playback in the system.
Value parameters
- 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.
Attributes
- See also
- Source
- CPSound.scala