class virtual source :The?name:string -> Frame.content_kind ->
object
..end
source
use is to send music frames through the get
method.method id : string
method set_id : ?definitive:bool -> string -> unit
stype
is the liveness type, telling whether a scheduler is
fallible or not, i.e. get
will never fail.
It is defined by each operator based on its sources' types.
method virtual stype : source_t
val mutable ns_kind : string
method register_command : descr:string -> ?usage:string -> string -> (string -> string) -> unit
method on_shutdown : (unit -> unit) -> unit
method clock : clock_variable
method private set_clock : unit
method get_ready : ?dynamic:bool -> source list -> unit
method private wake_up : source list -> unit
method leave : ?dynamic:bool -> source -> unit
get_ready
: the operator no longer needs the source.method private sleep : unit
method kind : Frame.content_kind
method virtual remaining : int
method seek : int -> int
method virtual is_ready : bool
is_ready
tells you if get
can be called.method get : Frame.t -> unit
get buf
asks the source to fill the buffer buf
if possible.
The get
call is partial when the buffer is not completely filled.
get
should never be called with a full buffer,
and without checking that the source is ready.method private virtual get_frame : Frame.t -> unit
method virtual abort_track : unit
method is_output : bool
method after_output : unit
method advance : unit
method private create_request : ?metadata:(string * string) list ->
?persistent:bool -> ?indicators:Request.indicator list -> string -> Request.t
method private log : Dtools.Log.t