Packages

o

eu.joaocosta.minart.audio.pure

AudioPlayerIO

object AudioPlayerIO extends AudioPlayerIOOps with IOOps[AudioPlayer]

Object containing the operations that act on an AudioPlayer.

Linear Supertypes
IOOps[AudioPlayer], IOBaseOps[AudioPlayer], AudioPlayerIOOps, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AudioPlayerIO
  2. IOOps
  3. IOBaseOps
  4. AudioPlayerIOOps
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def access[A](f: (AudioPlayer) ⇒ A): RIO[AudioPlayer, A]

    Returns a operation that requires this resource.

    Returns a operation that requires this resource.

    Definition Classes
    IOOps
  5. def accessAudioPlayer[A](f: (AudioPlayer) ⇒ A): AudioPlayerIO[A]

    Store an unsafe audio player operation in an AudioPlayerIO.

    Store an unsafe audio player operation in an AudioPlayerIO.

    Definition Classes
    AudioPlayerIOOps
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def foreach[A](it: () ⇒ Iterator[A])(f: (A) ⇒ RIO[AudioPlayer, Any]): RIO[AudioPlayer, Unit]

    Applies an operation to each element of a Iterator[A] and discards the result.

    Applies an operation to each element of a Iterator[A] and discards the result.

    Definition Classes
    IOOps
  12. def foreach[A](it: Iterable[A])(f: (A) ⇒ RIO[AudioPlayer, Any]): RIO[AudioPlayer, Unit]

    Applies an operation to each element of a Iterable[A] and discards the result.

    Applies an operation to each element of a Iterable[A] and discards the result.

    Definition Classes
    IOOps
  13. def fromCallback[A](operation: ((Try[A]) ⇒ Unit) ⇒ Unit): RIO[AudioPlayer, Poll[A]]

    Returns a Poll from a function that receives a callback

    Returns a Poll from a function that receives a callback

    Definition Classes
    IOBaseOps
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def isPlaying(channel: Int): AudioPlayerIO[Boolean]

    Checks if a channel still has data to be played.

    Checks if a channel still has data to be played.

    channel

    channel to check

    Definition Classes
    AudioPlayerIOOps
  18. val isPlaying: AudioPlayerIO[Boolean]

    Checks if this player still has data to be played.

    Checks if this player still has data to be played.

    Definition Classes
    AudioPlayerIOOps
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. val noop: RIO[AudioPlayer, Unit]

    An operation that does nothing.

    An operation that does nothing.

    Definition Classes
    IOBaseOps
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. def play(wave: AudioWave, channel: Int): AudioPlayerIO[Unit]

    Enqueues an audio wave to be played later in a certain channel.

    Enqueues an audio wave to be played later in a certain channel. The Audio Wave will play infinitely until stop() is called.

    wave

    audio wave to play

    channel

    channel where to play the audio wave

    Definition Classes
    AudioPlayerIOOps
  24. def play(wave: AudioWave): AudioPlayerIO[Unit]

    Enqueues an audio wave to be played later in channel 0.

    Enqueues an audio wave to be played later in channel 0. The Audio Wave will play infinitely until stop() is called.

    wave

    audio wave to play

    Definition Classes
    AudioPlayerIOOps
  25. def play(clip: AudioClip, channel: Int): AudioPlayerIO[Unit]

    Enqueues an audio clip to be played later in a certain channel.

    Enqueues an audio clip to be played later in a certain channel.

    clip

    audio clip to play

    channel

    channel where to play the audio clip

    Definition Classes
    AudioPlayerIOOps
  26. def play(clip: AudioClip): AudioPlayerIO[Unit]

    Enqueues an audio clip to be played later in channel 0.

    Enqueues an audio clip to be played later in channel 0.

    clip

    audio clip to play

    Definition Classes
    AudioPlayerIOOps
  27. def pure[A](x: A): RIO[AudioPlayer, A]

    Lifts a value into a RIO.

    Lifts a value into a RIO.

    Definition Classes
    IOBaseOps
  28. def sequence[A](it: Iterable[RIO[AudioPlayer, A]]): RIO[AudioPlayer, List[A]]

    Converts an Iterable[RIO[R, A]] into a RIO[R, List[A]].

    Converts an Iterable[RIO[R, A]] into a RIO[R, List[A]].

    Definition Classes
    IOOps
  29. def sequence_(it: Iterable[RIO[AudioPlayer, Any]]): RIO[AudioPlayer, Unit]

    Converts an Iterable[RIO[R, A]] into a RIO[R, Unit].

    Converts an Iterable[RIO[R, A]] into a RIO[R, Unit].

    Definition Classes
    IOOps
  30. def stop(channel: Int): AudioPlayerIO[Unit]

    Stops playback and removes all enqueued waves in a certain channel.

    Stops playback and removes all enqueued waves in a certain channel.

    Definition Classes
    AudioPlayerIOOps
  31. val stop: AudioPlayerIO[Unit]

    Stops playback and removes all enqueued waves.

    Stops playback and removes all enqueued waves.

    Definition Classes
    AudioPlayerIOOps
  32. def suspend[A](x: ⇒ A): RIO[AudioPlayer, A]

    Suspends a computation into a RIO.

    Suspends a computation into a RIO.

    Definition Classes
    IOBaseOps
  33. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. def traverse[A, B](it: Iterable[A])(f: (A) ⇒ RIO[AudioPlayer, B]): RIO[AudioPlayer, List[B]]

    Converts an Iterable[A] into a RIO[R, List[B]] by applying an operation to each element.

    Converts an Iterable[A] into a RIO[R, List[B]] by applying an operation to each element.

    Definition Classes
    IOOps
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  39. def when(predicate: Boolean)(io: ⇒ RIO[AudioPlayer, Unit]): RIO[AudioPlayer, Unit]

    Runs a computation only if the predicate is true, otherwise does nothing

    Runs a computation only if the predicate is true, otherwise does nothing

    Definition Classes
    IOOps

Inherited from IOOps[AudioPlayer]

Inherited from IOBaseOps[AudioPlayer]

Inherited from AudioPlayerIOOps

Inherited from AnyRef

Inherited from Any

Ungrouped