audiofile_copy_samples   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm

Implementation

(bind-func audiofile_copy_samples
  (lambda (src dest nsamp bitdepth type le:i1)
    (cond ((= type WAVE_FORMAT_IEEE_FLOAT)
           (if le
               (audiofile_float_to_sample_le src dest nsamp)
               (audiofile_float_to_sample_be src dest nsamp))
           #t)
          ((and (or (= type WAVE_FORMAT_PCM)
                    (= type WAVE_FORMAT_EXTENSIBLE))
                (= bitdepth 16))
           (if le
               (audiofile_16bitPCM_to_sample_le src dest nsamp)
               (audiofile_16bitPCM_to_sample_be src dest nsamp))
           #t)
          ((and (or (= type WAVE_FORMAT_PCM)
                    (= type WAVE_FORMAT_EXTENSIBLE))
                (= bitdepth 24))
           (if le
               (audiofile_24bitPCM_to_sample_le src dest nsamp)
               (audiofile_24bitPCM_to_sample_be src dest nsamp))
           #t)
          (else
           (println "audiofile error: the native xtlang wave/aiff file reader currently\nonly supports 16/24-bit PCM or 32-bit IEEE float audio\n\nFor more audio format options, use libs/external/sndfile.xtm")
           #f))))


Back to Index

Similar Entries

  • Vcopy    xtlang
  • array_4_ptr_copy    xtlang
  • 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_float_to_sample_be    xtlang
  • audiofile_float_to_sample_le    xtlang
  • audiofile_read_samples    xtlang
  • audiofile_wave_read_samples    xtlang
  • cl:copy-list    scheme
  • cl:tree-copy    scheme
  • clock->samples    scheme
  • copy    xtlang
  • copy    xtlang
  • copy_h    xtlang
  • ghttp_copy_request_body_into_buffer    xtlang
  • hcopy    xtlang
  • hcopy    xtlang
  • mcopy    xtlang
  • mcopy    xtlang
  • ocv_copyto    xtlang
  • samples->clock    scheme
  • sf_samples_from_file    xtlang
  • string-copy    scheme
  • sys_file_copy    xtlang
  • test_world_copy    xtlang
  • tree-copy    scheme
  • vcopy    xtlang
  • vcopy    xtlang
  • vcopy    xtlang
  • vcopy    xtlang
  • vcopy_pack    xtlang
  • vcopy_pack    xtlang
  • vcopy_unpack    xtlang
  • vcopy_unpack    xtlang
  • world_copy    xtlang
  • zcopy    xtlang
  • zcopy    xtlang
  • zcopy    xtlang
  • zcopy    xtlang
  • zcopy    xtlang
  • zcopy    xtlang
  • zcopy    xtlang
  • zcopy    xtlang
  • zcopy    xtlang