o1.sound.sampled

Members list

Type members

Classlikes

object Sound

This companion object of class Sound provides methods for creating new Sound objects. It has an alias in the top-level package o1, so it’s accessible to students simply via import o1.*.

This companion object of class Sound provides methods for creating new Sound objects. It has an alias in the top-level package o1, so it’s accessible to students simply via import o1.*.

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Sound.type
trait Sound

Each instance of this trait represents a recorded sound sample.

Each instance of this trait represents a recorded sound sample.

You create Sounds with the methods on the companion object: Sound("my_sound_file.wav"). The supported formats are WAV, AIFF, AU, AIFC, and SND.

This trait has an alias in the top-level package o1, so it’s accessible to students simply via import o1.*.

This type is essentially a wrapper around the key functionality in javax.sound.sampled, especially its Clip class.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete fields

a constant that you can pass to play to make the sound repeat indefinitely

a constant that you can pass to play to make the sound repeat indefinitely

Attributes

val Mute: Float

a constant that you can pass to various methods in this package to silence a sound sample completely

a constant that you can pass to various methods in this package to silence a sound sample completely

Attributes