object AudioPlayerIO extends AudioPlayerIOOps with IOOps[AudioPlayer]
Object containing the operations that act on an AudioPlayer.
- Alphabetic
- By Inheritance
- AudioPlayerIO
- IOOps
- IOBaseOps
- AudioPlayerIOOps
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
-
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
-
def
fromCallback[A](operation: ((Try[A]) ⇒ Unit) ⇒ Unit): RIO[AudioPlayer, Poll[A]]
Returns a Poll from a function that receives a callback
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
-
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
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
val
noop: RIO[AudioPlayer, Unit]
An operation that does nothing.
An operation that does nothing.
- Definition Classes
- IOBaseOps
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
-
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
-
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
-
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
-
def
pure[A](x: A): RIO[AudioPlayer, A]
Lifts a value into a RIO.
-
def
sequence[A](it: Iterable[RIO[AudioPlayer, A]]): RIO[AudioPlayer, List[A]]
Converts an
Iterable[RIO[R, A]]into aRIO[R, List[A]].Converts an
Iterable[RIO[R, A]]into aRIO[R, List[A]].- Definition Classes
- IOOps
-
def
sequence_(it: Iterable[RIO[AudioPlayer, Any]]): RIO[AudioPlayer, Unit]
Converts an
Iterable[RIO[R, A]]into aRIO[R, Unit].Converts an
Iterable[RIO[R, A]]into aRIO[R, Unit].- Definition Classes
- IOOps
-
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
-
val
stop: AudioPlayerIO[Unit]
Stops playback and removes all enqueued waves.
Stops playback and removes all enqueued waves.
- Definition Classes
- AudioPlayerIOOps
-
def
suspend[A](x: ⇒ A): RIO[AudioPlayer, A]
Suspends a computation into a RIO.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
traverse[A, B](it: Iterable[A])(f: (A) ⇒ RIO[AudioPlayer, B]): RIO[AudioPlayer, List[B]]
Converts an
Iterable[A]into aRIO[R, List[B]]by applying an operation to each element.Converts an
Iterable[A]into aRIO[R, List[B]]by applying an operation to each element.- Definition Classes
- IOOps
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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