o1.sound.sampled

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.*.

Companion:
class
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.

Companion:
object

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

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