clear_sample_data_   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/external/instruments_ext.xtm

Implementation

(bind-func clear_sample_data_
  (lambda (inst:[SAMPLE,SAMPLE,i64,i64,SAMPLE*]* index:i64 bank:i32)
    (let ((samples:|20,|128,SAMPLE*||* (inst.samples))
          (samples_channels:|20,|128,i64||* (inst.samples_channels))
          (samples_length:|20,|128,i64||* (inst.samples_length))
          (olddat (if (<> 0 (aref (aref-ptr samples_length bank) index))
                      (bitcast (aref (aref-ptr samples bank) index) i8*)
                      null)))
      (aset! (aref-ptr samples_length bank) index 0)
      (aset! (aref-ptr samples_channels bank) index 0)
      (aset! (aref-ptr samples bank) index null)
      (if (null? olddat) 0
          (begin (free olddat)
                 1)))))


Back to Index

Similar Entries

  • AudioBuffer_data_b64    xtlang
  • AudioBuffer_data_b64_cstring    xtlang
  • AudioBuffer_set_data_b64    xtlang
  • AudioBuffer_shared_data    xtlang
  • Pm_Event_Data1    xtlang
  • Pm_Event_Data2    xtlang
  • Pm_Message_Data1    xtlang
  • Pm_Message_Data2    xtlang
  • QRcode_data    xtlang
  • Texture_bind_data    xtlang
  • Texture_bind_data    xtlang
  • VBO_data    xtlang
  • VBO_update_data    xtlang
  • aiProcess_FindInvalidData    scheme
  • aiProcess_ValidateDataStructure    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
  • bind-data    macro
  • bind-data-constructors    scheme
  • bind-data-deconstructors    scheme
  • bind-data-deconstructors-macros    scheme
  • bind-data-getters    scheme
  • bind-data-type    scheme
  • bind-data-type-constructor    scheme
  • bind-data-types    scheme
  • cef_string_clear    xtlang
  • clear-sampler    scheme
  • clear-session    macro
  • clear_walker_array    xtlang
  • clock->samples    scheme
  • create_data    xtlang
  • data    xtlang
  • data    xtlang
  • fits-image-data-R32    xtlang
  • fits-image-data-R32    xtlang
  • fits-image-data-RGBA32    xtlang
  • fits-image-data-RGBA32    xtlang
  • fits-image-data-RGBA32-false    xtlang
  • fits-image-data-RGBA32-false    xtlang
  • get_hand_data    xtlang
  • godot_array_clear    xtlang
  • impc:ti:clear-all-vars    scheme
  • impc:ti:compile-type-dataconstructors    scheme
  • init_sample_data    xtlang
  • init_sample_data    xtlang
  • load-sample    scheme
  • load-sampler    scheme
  • load_cube_data    xtlang
  • load_data    xtlang
  • new_sample    xtlang
  • new_sample    xtlang
  • nvg_clear    xtlang
  • ocv_dataPtr    xtlang
  • ocv_dataPtr    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-data-arrays-lines    xtlang
  • set-data-arrays-points    xtlang
  • set-data-particles    xtlang
  • set_sample_data_    xtlang
  • set_sample_offset_    xtlang
  • set_sampler_audiobuffer    xtlang
  • sf_samplerate    xtlang
  • sf_samples_from_file    xtlang
  • sf_set_samplerate    xtlang
  • sys_file_datasync    xtlang
  • sys_file_datasync    xtlang
  • update_data_points    xtlang
  • world_data    xtlang
  • world_data_index    xtlang
  • world_data_size    xtlang
  • xobj_database    xtlang
  • xtm_clear_path    xtlang
  • xtm_frame_data_to_tex    xtlang
  • xtm_set_vgimage_subdata    xtlang
  • xtm_vg_clear    xtlang
  • xtm_vg_clear_rect    xtlang