eu.joaocosta.minart.audio

Members list

Type members

Classlikes

final case class AudioClip(wave: AudioWave, duration: Double)

Audio Clip represented by a wave and a duration.

Audio Clip represented by a wave and a duration.

Value parameters

duration

duration of this audio wave in seconds

wave

audio wave storing this clip

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
object AudioClip

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
AudioClip.type
final case class AudioMix(volume: Double)

Definitions of how a channel should be mixed.

Definitions of how a channel should be mixed.

Value parameters

volume

the channel volume from 0.0 to 1.0

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait AudioPlayer

Multi-channel mono audio player.

Multi-channel mono audio player.

Can play and stop audio clips and audio waves on distinct channels.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object AudioPlayer

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait AudioQueue

Internal AudioQueue abstraction.

Internal AudioQueue abstraction.

This is not expected to be used by user code, but it's helpful to implement custom backends

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object AudioQueue

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
AudioQueue.type
trait AudioWave extends Double => Double

Infinite audio wave represented by a continuous function from time (in seconds) to amplitude (in [-1, 1]).

Infinite audio wave represented by a continuous function from time (in seconds) to amplitude (in [-1, 1]).

Value parameters

wave

continuous function representing the wave

Attributes

Companion
object
Supertypes
trait Double => Double
class Object
trait Matchable
class Any
Self type
object AudioWave

Attributes

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

A low-level version of a audio player with init and close methods.

A low-level version of a audio player with init and close methods.

Attributes

Companion
object
Supertypes
trait Simple[Settings]
trait AutoCloseable
trait AudioPlayer
class Object
trait Matchable
class Any
Show all

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
final case class Oscillator(generator: Double => AudioWave) extends Double => AudioWave

Oscillator used to create periodic waves.

Oscillator used to create periodic waves.

Value parameters

generator

function used to generate a wave based on a frequency

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Double => AudioWave
class Object
trait Matchable
class Any
Show all
object Oscillator

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Oscillator.type
object Sampler

Helper methods to sample an Audio Wave or Clip.

Helper methods to sample an Audio Wave or Clip.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Sampler.type