package mindstorm

  1. Overview
  2. Docs

Play sounds (.rso files) and tones.

val play : ?check_status:bool -> 'a conn -> ?loop:bool -> string -> unit

play_soundfile conn file plays the sound file named file. The sound files extension, namely ".rso", must be part of file.

  • parameter loop

    if true repeat the play indefinitely. Default: false.

val stop : ?check_status:bool -> 'a conn -> unit

play_soundfile conn file plays the sound file named file. The sound files extension, namely ".rso", must be part of file.

  • parameter loop

    if true repeat the play indefinitely. Default: false.

Stop the current playback. Does nothing if no sound file is playing.

val play_tone : ?check_status:bool -> 'a conn -> int -> int -> unit

Stop the current playback. Does nothing if no sound file is playing.

play_tone conn freq duration play a tone with freq Hz lasting duration miliseconds.

OCaml

Innovation. Community. Security.