Skip to content

Commit

Permalink
We don't want to use drop_audio for output.graphics and output.sdl.
Browse files Browse the repository at this point in the history
  • Loading branch information
smimram committed Nov 4, 2019
1 parent 037de28 commit e908606
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/lang/lang.ml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ let video_only =
Constrained
{ Frame. audio = Fixed 0 ; video = Fixed 1 ; midi = Fixed 0 }

let video =
Constrained
{ Frame. audio = Any_fixed 0 ; video = Fixed 1 ; midi = Any_fixed 0 }

let audio_video_any =
Constrained
{ Frame. audio = Any_fixed 0 ; video = Any_fixed 0 ; midi = Fixed 0 }
Expand Down
4 changes: 4 additions & 0 deletions src/lang/lang.mli
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,12 @@ val audio_stereo : lang_kind_formats
val audio_n : int -> lang_kind_formats
val audio_variable : lang_kind_formats

(** One video channel only. *)
val video_only : lang_kind_formats
(** [n] video channels only. *)
val video_n : int -> lang_kind_formats
(** One video channel, anything for other channels. *)
val video : lang_kind_formats

val midi_n : int -> lang_kind_formats
val midi_only : lang_kind_formats
Expand Down
2 changes: 1 addition & 1 deletion src/outputs/graphics_out.ml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ object
end

let () =
let k = Lang.kind_type_of_kind_format ~fresh:1 Lang.video_only in
let k = Lang.kind_type_of_kind_format ~fresh:1 Lang.video in
Lang.add_operator "output.graphics" ~active:true
(Output.proto @ [
"", Lang.source_t k, None, None
Expand Down
2 changes: 1 addition & 1 deletion src/outputs/sdl_out.ml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ object (self)
end

let () =
let k = Lang.kind_type_of_kind_format ~fresh:1 Lang.video_only in
let k = Lang.kind_type_of_kind_format ~fresh:1 Lang.video in
Lang.add_operator "output.sdl" ~active:true
(Output.proto @ [
"", Lang.source_t k, None, None
Expand Down

0 comments on commit e908606

Please sign in to comment.