Module Node.Panner
Panner nodes.
module Panning_model : sig ... end
Panning model type enumeration.
module Distance_model : sig ... end
Distance model type enumeration.
type opts
The type for
PannerOptions
.
val opts : ?channel_count:int -> ?channel_count_mode:Channel_count_mode.t -> ?channel_interpretation:Channel_interpretation.t -> ?panning_model:Panning_model.t -> ?distance_model:Distance_model.t -> ?position_x:float -> ?position_y:float -> ?position_z:float -> ?orientation_x:float -> ?orientation_y:float -> ?orientation_z:float -> ?ref_distance:float -> ?max_distance:float -> ?rolloff_factor:float -> ?cone_inner_angle:float -> ?cone_outer_angle:float -> ?cone_outer_gain:float -> unit -> opts
opts ()
are panner node options with given parameters.
type t
The type for
PannerNode
objects.
val panning_model : t -> Panning_model.t
panning_model n
is the panning model ofn
.
val set_panning_model : t -> Panning_model.t -> unit
set_panning_model n v
sets thepanning_model
ofn
tov
.
val distance_model : t -> Distance_model.t
distance_model n
is the distance model ofn
.
val set_distance_model : t -> Distance_model.t -> unit
set_distance_model n v
sets thedistance_model
ofn
tov
.
val position_x : t -> Param.t
position_x n
is the x position ofn
.
val position_y : t -> Param.t
position_y n
is the y position ofn
.
val position_z : t -> Param.t
position_z n
is the z position ofn
.
val orientation_x : t -> Param.t
orientation_x n
is the x orientation ofn
.
val orientation_y : t -> Param.t
orientation_y n
is the y orientation ofn
.
val orientation_z : t -> Param.t
orientation_z n
is the z orientation ofn
.
val ref_distance : t -> float
ref_distance n
is the reference distance ofn
.
val set_ref_distance : t -> float -> unit
set_ref_distance n v
sets theref_distance
ofn
tov
.
val max_distance : t -> float
max_distance n
is the maximal distance ofn
.
val set_max_distance : t -> float -> unit
set_max_distance n v
sets themax_distance
ofn
tov
.
val cone_inner_angle : t -> float
cone_inner_angle n
is the cone inner angle ofn
.
val set_cone_inner_angle : t -> float -> unit
set_cone_inner_angle n v
sets thecone_inner_angle
ofn
tov
.
val cone_outer_angle : t -> float
cone_outer_angle n
is the cone outer angle ofn
.
val set_cone_outer_angle : t -> float -> unit
set_cone_outer_angle n v
sets thecone_outer_angle
ofn
tov
.
val cone_outer_gain : t -> float
cone_outer_gain n
is the cone outer gain ofn
.
val set_cone_outer_gain : t -> float -> unit
set_cone_outer_gain n v
sets thecone_outer_gain
ofn
tov
.