sf_samples_from_file   xtlang


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

Implementation

(bind-func sf_samples_from_file
  "get the total number of samples (* frames channels) from an audio file"
  (lambda (filename)
    (let ((info:SF_INFO* (salloc))
          (audiofile (sf_open filename SFM_READ info)))
      (if (null? audiofile)
          -1
          (begin
            (sf_close audiofile)
            (* (sf_frames info)
               (convert (sf_channels info))))))))


Back to Index

Similar Entries

  • -clock:metro-from-host-    scheme
  • -clock:metro-from-host-    scheme
  • AudioBuffer_from_aiff    xtlang
  • AudioBuffer_from_wave    xtlang
  • _playbin_bus_call:GstBusFunc    xtlang
  • aiProcess_PreTransformVertices    scheme
  • aiProcess_TransformUVCoords    scheme
  • ai_load_ogl_texture_from_buffer    xtlang
  • analogue_remove_file    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_copy_samples    xtlang
  • audiofile_float_to_sample_be    xtlang
  • audiofile_float_to_sample_le    xtlang
  • audiofile_read_samples    xtlang
  • audiofile_wave_read_samples    xtlang
  • bitmap_from_window    xtlang
  • call-with-input-file    scheme
  • call-with-output-file    scheme
  • cerberus_frq_from_val    xtlang
  • cerberus_octave_from_val    xtlang
  • cerberus_remove_file    xtlang
  • clock->samples    scheme
  • clock:offset-from-server    scheme
  • comb_fb_from_rtsixty    xtlang
  • cpTransformAxialScale    xtlang
  • cpTransformBB    xtlang
  • cpTransformBoneScale    xtlang
  • cpTransformInverse    xtlang
  • cpTransformMult    xtlang
  • cpTransformNew    xtlang
  • cpTransformNewTranspose    xtlang
  • cpTransformOrtho    xtlang
  • cpTransformPoint    xtlang
  • cpTransformRigid    xtlang
  • cpTransformRigidInverse    xtlang
  • cpTransformRotate    xtlang
  • cpTransformScale    xtlang
  • cpTransformTranslate    xtlang
  • cpTransformVect    xtlang
  • cpTransformWrap    xtlang
  • cpTransformWrapInverse    xtlang
  • file->string    scheme
  • file-exists?    scheme
  • file_size    xtlang
  • file_word_count    xtlang
  • filename-from-path    scheme
  • filename-strip-extension    scheme
  • fill_buffer_with_file    xtlang
  • fits-file-print    xtlang
  • fits-file-print    xtlang
  • fits-open-file    xtlang
  • fits-open-file    xtlang
  • frq_from_val    xtlang
  • frq_from_val    xtlang
  • get_file_name    xtlang
  • glew-name-from-gl-name    scheme
  • glfw_cursor_position_callback:GLFWcursorposfun    xtlang
  • glfw_set_compatibility_profile    xtlang
  • glfw_set_core_profile    xtlang
  • glfw_window_focus_callback:GLFWwindowfocusfun    xtlang
  • glfw_window_position_callback:GLFWwindowposfun    xtlang
  • global_transform2d    xtlang
  • godot_variant_new_transform    xtlang
  • godot_variant_new_transform2d    xtlang
  • impc:aot:compile-xtm-file    scheme
  • impc:ir:compiler:closure-from-getter    scheme
  • impc:ir:convert-from-pretty-types    scheme
  • impc:ir:get-arity-from-pretty-closure    scheme
  • impc:ir:get-array-type-from-str    scheme
  • impc:ir:get-closure-type-from-str    scheme
  • impc:ir:get-function-type-from-str    scheme
  • impc:ir:get-tuple-type-from-str    scheme
  • impc:ir:get-type-from-pretty-array    scheme
  • impc:ir:get-type-from-pretty-closure    scheme
  • impc:ir:get-type-from-pretty-str    scheme
  • impc:ir:get-type-from-pretty-str-rec    scheme
  • impc:ir:get-type-from-pretty-tuple    scheme
  • impc:ir:get-type-from-pretty-vector    scheme
  • impc:ir:get-type-from-str    scheme
  • impc:ir:get-vector-type-from-str    scheme
  • impc:ti:first-transform    scheme
  • impc:ti:reverse-set-bangs-from-reified    scheme
  • impc:ti:tuple-list-from-pretty-tuple-str    scheme
  • load_blep_tables_from_blob    unknown
  • octave_from_val    xtlang
  • pc:from-intervals    scheme
  • pc:from-steps    scheme
  • pc:scale-from-chord    scheme
  • pc:scale-from-pc    scheme
  • playbin_bus_call:GstBusFunc    xtlang
  • rmap_helper_lst_sym_transform    scheme
  • sampler-parse-filename    scheme
  • sampler-parse-midinote-filename    scheme
  • sampler-parse-spn-filename    scheme
  • samples->clock    scheme
  • sf_channels    xtlang
  • sf_channels_from_file    xtlang
  • sf_format    xtlang
  • sf_frames    xtlang
  • sf_frames_from_file    xtlang
  • sf_print_audio_file_info    xtlang
  • sf_read_file_into_buffer    xtlang
  • sf_samplerate    xtlang
  • sf_sections    xtlang
  • sf_seekable    xtlang
  • sf_set_channels    xtlang
  • sf_set_format    xtlang
  • sf_set_frames    xtlang
  • sf_set_samplerate    xtlang
  • sf_set_sections    xtlang
  • sf_set_seekable    xtlang
  • sfixed    xtlang
  • string_list_from_file    xtlang
  • string_list_from_string    xtlang
  • sys:compile-init-ll-from-str    scheme
  • sys:compile-ll-from-str    scheme
  • sys:file-path-components    scheme
  • sys_file_append    xtlang
  • sys_file_close    xtlang
  • sys_file_copy    xtlang
  • sys_file_datasync    xtlang
  • sys_file_datasync    xtlang
  • sys_file_eof    xtlang
  • sys_file_flush    xtlang
  • sys_file_getc    xtlang
  • sys_file_gets    xtlang
  • sys_file_link    xtlang
  • sys_file_mktemp    xtlang
  • sys_file_open    xtlang
  • sys_file_open_stderr    xtlang
  • sys_file_open_stdin    xtlang
  • sys_file_open_stdout    xtlang
  • sys_file_putc    xtlang
  • sys_file_puts    xtlang
  • sys_file_read    xtlang
  • sys_file_remove    xtlang
  • sys_file_rename    xtlang
  • sys_file_seek    xtlang
  • sys_file_sync    xtlang
  • sys_file_ungetc    xtlang
  • sys_file_write    xtlang
  • sys_filepath_root    xtlang
  • sys_g_file_test    xtlang
  • v4fabsf    xtlang
  • vcosf4    xtlang
  • vcosf4    xtlang
  • with-input-from-file    scheme
  • with-input-output-from-to-files    scheme
  • with-output-to-file    scheme
  • xtmdoc-get-args-from-form    scheme