Module Mindstorm.Sound


module Sound: sig .. end
Play sounds (.rso files) and tones.

val play : ?check_status:bool -> 'a Mindstorm.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.
check_status : whether to check the status returned by the brick. Default: see Mindstorm.connect_bluetooth.
loop : if true repeat the play indefinitely. Default: false.
val stop : ?check_status:bool -> 'a Mindstorm.conn -> unit
Stop the current playback. Does nothing if no sound file is playing.
check_status : whether to check the status returned by the brick. Default: see Mindstorm.connect_bluetooth.
val play_tone : ?check_status:bool -> 'a Mindstorm.conn -> int -> int -> unit
play_tone conn freq duration play a tone with freq Hz lasting duration miliseconds.
check_status : whether to check the status returned by the brick. Default: see Mindstorm.connect_bluetooth.