class SoundFile::SFile

Defined in:

soundfile.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(info : LibSndFile::SFInfo = LibSndFile::SFInfo.new) #

[View source]

Class Method Detail

def self.format_info #

[View source]
def self.info #

[View source]
def self.open(filename, mode, info = self.info, &) #

[View source]

Instance Method Detail

def [](type) #

[View source]
def []=(type, str) #

[View source]
def calc_max_all_channels #

[View source]
def calc_norm_max_all_channels #

[View source]
def calc_norm_signal_max #

[View source]
def calc_signal_max #

[View source]
def channels #

[View source]
def close #

[View source]
def default_simple_format #

[View source]
def endian_type #

[View source]
def error_number #

[View source]
def error_to_s #

[View source]
def extract_format_info(ptr) #

[View source]
def file_truncate(frames : Int32) #

[View source]
def format_check #

[View source]
def format_raw #

[View source]
def format_to_hash #

[View source]
def format_to_s #

[View source]
def format_to_tuple #

[View source]
def format_type #

[View source]
def frames #

[View source]
def get_broadcast_info #

[View source]
def get_cart_info #

[View source]
def get_clipping #

[View source]
def get_cue #

[View source]
def get_cue_count #

[View source]
def get_embed_file_info #

[View source]
def get_format_info(format_info : LibSndFile::SFFormatInfo) #

[View source]
def get_format_major(finfo : LibSndFile::SFFormatInfo) #

[View source]
def get_format_major_count #

[View source]
def get_format_subtype_count #

[View source]
def get_instrument #

[View source]
def get_log_info #

[View source]
def get_loop_info #

[View source]
def get_max_all_channels #

[View source]
def get_norm_double #

[View source]
def get_norm_float #

[View source]
def get_signal_max #

[View source]
def get_simple_format(fmt = 9) #

[View source]
def get_simple_format_count #

[View source]
def get_string(type) #

[View source]
def handle : Pointer(Int32)? #

[View source]
def handle=(handle : Pointer(Int32) | Nil) #

[View source]
def info : LibSndFile::SFInfo #

[View source]
def info=(info : LibSndFile::SFInfo) #

[View source]
def no_error? #

[View source]
def open(filename, mode) #

[View source]
def open(filename, mode, &) #

[View source]
def open_fd(descriptor : Int32, mode, close_desc = false) #

[View source]
def open_fd(descriptor : Int32, mode, close_desc = false, &) #

[View source]
def open_file(file : File, mode, close_desc = false) #

[View source]
def open_file(file : File, mode, close_desc = false, &) #

[View source]
def raw_data_needs_endswap #

[View source]
def read_double(ptr, size) #

[View source]
def read_float(ptr, size) #

[View source]
def read_int(ptr, size) #

[View source]
def read_raw(ptr, size) #

[View source]
def read_short(ptr, size) #

[View source]
def readf_double(ptr, size) #

[View source]
def readf_float(ptr, size) #

[View source]
def readf_int(ptr, size) #

[View source]
def readf_short(ptr, size) #

[View source]
def rf64_auto_downgrade(val) #

[View source]
def sample_rate #

[View source]
def sections #

[View source]
def seek(frames, whence) #

[View source]
def seekable? #

[View source]
def set_add_peak_chunk(val) #

[View source]
def set_broadcast_info #

[View source]
def set_cart_info #

[View source]
def set_clipping(val) #

[View source]
def set_compression_level(level : Float64) #

[View source]
def set_cue #

[View source]
def set_instrument #

[View source]
def set_norm_double(val) #

[View source]
def set_norm_float(val) #

[View source]
def set_raw_start_offset(frames : Int32) #

[View source]
def set_scale_float_int_read(val) #

[View source]
def set_scale_int_float_write(val) #

[View source]
def set_string(str, type) #

[View source]
def set_update_header_auto(val) #

[View source]
def set_vbr_encoding_quality(quality : Float64) #

[View source]
def sf_false #

[View source]
def sf_true #

[View source]
def sf_version #

[View source]
def size #

[View source]
def sub_type #

[View source]
def update_header_now #

[View source]
def version #

[View source]
def wavex_get_ambisonic #

[View source]
def wavex_set_ambisonic(ambi) #

[View source]
def write_double(ptr, size) #

[View source]
def write_float(ptr, size) #

[View source]
def write_int(ptr, size) #

[View source]
def write_raw(ptr, size) #

[View source]
def write_short(ptr, size) #

[View source]
def writef_double(ptr, size) #

[View source]
def writef_float(ptr, size) #

[View source]
def writef_int(ptr, size) #

[View source]
def writef_short(ptr, size) #

[View source]