Module OcsfmlAudio

module OcsfmlAudio: sig .. end
Audio I/O and sound management *

type 'a reference = 'a 
module Listener: sig .. end
The audio listener is the point in the scene from where all the sounds are heard.
type status = 
| Stopped (*Sound is not playing.*)
| Paused (*Sound is paused.*)
| Playing (*Sound is playing.*)
Enumeration of the sound source states.
class sound_source : ?pitch:float -> ?volume:float -> ?position:float * float * float -> ?relative_to_listener:bool -> ?min_distance:float -> ?attenuation:float -> SoundSource.t -> object .. end
Base class defining a sound's properties.
class sound_stream : ?pitch:float -> ?volume:float -> ?position:float * float * float -> ?relative_to_listener:bool -> ?min_distance:float -> ?attenuation:float -> ?playing_offset:OcsfmlSystem.Time.t -> ?loop:bool -> SoundStream.t -> object .. end
Binding does not support custom streams yet.
class music : ?pitch:float -> ?volume:float -> ?position:float * float * float -> ?relative_to_listener:bool -> ?min_distance:float -> ?attenuation:float -> ?playing_offset:OcsfmlSystem.Time.t -> ?loop:bool -> unit -> object .. end
Streamed music played from an audio file.
type samples_type = (int, Bigarray.int16_signed_elt, Bigarray.c_layout) Bigarray.Array1.t 
class const_sound_buffer : [ `Copy of < rep__sf_SoundBuffer : SoundBuffer.t; .. > | `None ] -> object .. end
class sound_buffer : [ `Copy of < rep__sf_SoundBuffer : SoundBuffer.t; .. >
| `File of string
| `None
| `Samples of samples_type * int * int
| `Stream of OcsfmlSystem.input_stream ] ->
object .. end
Storage for audio samples defining a sound.
module SoundRecorder: sig .. end
class sound_recorder : SoundRecorder.t -> object .. end
Abstract base class for capturing sound data.
class sound_buffer_recorder : object .. end
Specialized sound_recorder which stores the captured audio data into a sound buffer.
class sound : ?pitch:float -> ?volume:float -> ?position:float * float * float -> ?relative_to_listener:bool -> ?min_distance:float -> ?attenuation:float -> ?loop:bool -> ?buffer:sound_buffer -> ?playing_offset:OcsfmlSystem.Time.t -> unit -> object .. end
Regular sound that can be played in the audio environment.