new_sample   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/contrib/gstvideo_multi.xtm

Implementation

(bind-func new_sample
  (lambda (sink:GstAppSink* data:gpointer)
    (let ((sample (gst_app_sink_pull_sample (cast sink i8*)))
          (caps (gst_sample_get_caps sample))
          (buffer (gst_sample_get_buffer sample))
          (dat:i8* null)
          (xsize:gsize 0)
          (quad (tref (cast data userdata*) 0)))
      ;; (printf "Playing back on quad:%d\n" quad)
      (set! dat (cond ((= quad 1) sampledata1)
                      ((= quad 2) sampledata2)
                      ((= quad 3) sampledata3)
                      ((= quad 4) sampledata4)))
      (set! xsize (gst_buffer_extract buffer 0 dat (* 3 600 400)))
      (if (= xsize (* 3 600 400))
          (cond ((= quad 1) (set! sampledata1dirty #t))
                ((= quad 2) (set! sampledata2dirty #t))
                ((= quad 3) (set! sampledata3dirty #t))
                ((= quad 4) (set! sampledata4dirty #t)))
          (cond ((= quad 1) (set! sampledata1dirty #f))
                ((= quad 2) (set! sampledata2dirty #f))
                ((= quad 3) (set! sampledata3dirty #f))
                ((= quad 4) (set! sampledata4dirty #f))))
      GST_FLOW_OK)))


Back to Index

Similar Entries

  • aiProcess_LimitBoneWeights    scheme
  • audiofile_16bitPCM_to_sample_be    xtlang
  • audiofile_16bitPCM_to_sample_le    xtlang
  • audiofile_24bitPCM_to_sample_be    xtlang
  • audiofile_24bitPCM_to_sample_le    xtlang
  • audiofile_aiff_read_samples    xtlang
  • audiofile_copy_samples    xtlang
  • audiofile_float_to_sample_be    xtlang
  • audiofile_float_to_sample_le    xtlang
  • audiofile_read_samples    xtlang
  • audiofile_wave_read_samples    xtlang
  • clear-sampler    scheme
  • clear_sample_data_    xtlang
  • clock->samples    scheme
  • cpBBNew    xtlang
  • cpBBNewForCircle    xtlang
  • cpBBNewForExtents    xtlang
  • cpShapeFilterNew    xtlang
  • cpTransformNew    xtlang
  • cpTransformNewTranspose    xtlang
  • get_new_pos    xtlang
  • get_new_pos2    xtlang
  • godot_array_new    xtlang
  • godot_color_new_rgb    xtlang
  • godot_node_path_new    xtlang
  • godot_string_new    xtlang
  • godot_variant_new_aabb    xtlang
  • godot_variant_new_basis    xtlang
  • godot_variant_new_bool    xtlang
  • godot_variant_new_color    xtlang
  • godot_variant_new_int    xtlang
  • godot_variant_new_nil    xtlang
  • godot_variant_new_node_path    xtlang
  • godot_variant_new_plane    xtlang
  • godot_variant_new_quat    xtlang
  • godot_variant_new_real    xtlang
  • godot_variant_new_rect2    xtlang
  • godot_variant_new_string    xtlang
  • godot_variant_new_transform    xtlang
  • godot_variant_new_transform2d    xtlang
  • godot_variant_new_vector2    xtlang
  • godot_variant_new_vector3    xtlang
  • godot_vector2_new    xtlang
  • godot_vector3_new    xtlang
  • icr:new-zone    scheme
  • impc:ir:compile:push_new_zone    scheme
  • impc:ti:initialize-closure-with-new-zone    scheme
  • impc:ti:push_new_zone-check    scheme
  • impc:ti:register-new-builtin    scheme
  • impc:ti:register-new-closure    scheme
  • impc:ti:register-new-genericfunc    scheme
  • impc:ti:register-new-generictype    scheme
  • impc:ti:register-new-globalvar    scheme
  • impc:ti:register-new-namedtype    scheme
  • impc:ti:register-new-nativefunc    scheme
  • impc:ti:register-new-polyfunc    scheme
  • impc:ti:register-new-polytype    scheme
  • impc:ti:register-new-typealias    scheme
  • impc:ti:register-new-xtmacro    scheme
  • impc:ti:spec-new-type?    scheme
  • init_sample_data    xtlang
  • init_sample_data    xtlang
  • load-sample    scheme
  • load-sampler    scheme
  • new-horde    scheme
  • new_preroll    xtlang
  • new_preroll    xtlang
  • new_sample    xtlang
  • sampler    scheme
  • sampler    scheme
  • sampler-parse-filename    scheme
  • sampler-parse-midinote-filename    scheme
  • sampler-parse-spn-filename    scheme
  • sampler-populate-slot    scheme
  • sampler-set-slot-offset    scheme
  • sampler_fx    xtlang
  • sampler_note    xtlang
  • sampler_note_linear    xtlang
  • samples->clock    scheme
  • set_sample_data_    xtlang
  • set_sample_offset_    xtlang
  • set_sampler_audiobuffer    xtlang
  • sf_samplerate    xtlang
  • sf_samples_from_file    xtlang
  • sf_set_samplerate    xtlang