trait AudioPlayerIOOps extends AnyRef
Representation of an audio player operation, with the common Monad operations.
- Alphabetic
- By Inheritance
- 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
accessAudioPlayer[A](f: (AudioPlayer) ⇒ A): AudioPlayerIO[A]
Store an unsafe audio player operation in an AudioPlayerIO.
-
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] )
-
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
-
val
isPlaying: AudioPlayerIO[Boolean]
Checks if this player still has data to be played.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
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
-
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
-
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
-
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
-
def
stop(channel: Int): AudioPlayerIO[Unit]
Stops playback and removes all enqueued waves in a certain channel.
-
val
stop: AudioPlayerIO[Unit]
Stops playback and removes all enqueued waves.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()