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    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • array_4_ptr_copy    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • audiofile_16bitPCM_to_sample_be    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_16bitPCM_to_sample_le    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_24bitPCM_to_sample_be    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_24bitPCM_to_sample_le    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_aiff_read_samples    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_float_to_sample_be    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_float_to_sample_le    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_read_samples    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_wave_read_samples    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • cl:copy-list    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • cl:tree-copy    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • clock->samples    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • copy    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • copy    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/stream.xtm
  • copy_h    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • ghttp_copy_request_body_into_buffer    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • hcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • hcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • mcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • mcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • ocv_copyto    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/xtmcv.xtm
  • samples->clock    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • sf_samples_from_file    xtlang    /digego/extempore/tree/v0.8.9/libs/external/sndfile.xtm
  • string-copy    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • sys_file_copy    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • test_world_copy    xtlang    /digego/extempore/tree/v0.8.9/tests/core/game-of-life.xtm
  • tree-copy    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • vcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • vcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • vcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • vcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • vcopy_pack    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • vcopy_pack    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • vcopy_unpack    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • vcopy_unpack    xtlang    /digego/extempore/tree/v0.8.9/libs/core/math.xtm
  • world_copy    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • zcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • zcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • zcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • zcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • zcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • zcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • zcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • zcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • zcopy    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm