libsamplerate

package module
v0.0.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2026 License: BSD-3-Clause Imports: 3 Imported by: 1

README

libsamplerate

Package libsamplerate is a ccgo/v4 version of libsamplerate.a (https://github.com/libsndfile/libsamplerate)

Documentation: https://pkg.go.dev/modernc.org/libsamplerate

Documentation

Overview

Package libsamplerate is a ccgo/v4 version of libsamplerate.a (https://github.com/libsndfile/libsamplerate)

Builders: https://modern-c.appspot.com/-/builder/?importpath=modernc.org/libsamplerate

Index

Constants

View Source
const SRC_ERR_BAD_CALLBACK = 17
View Source
const SRC_ERR_BAD_CHANNEL_COUNT = 11
View Source
const SRC_ERR_BAD_CONVERTER = 10
View Source
const SRC_ERR_BAD_DATA = 3
View Source
const SRC_ERR_BAD_DATA_PTR = 4
View Source
const SRC_ERR_BAD_INTERNAL_STATE = 22
View Source
const SRC_ERR_BAD_MODE = 18
View Source
const SRC_ERR_BAD_PRIV_PTR = 14
View Source
const SRC_ERR_BAD_PROC_PTR = 7
View Source
const SRC_ERR_BAD_SINC_STATE = 15
View Source
const SRC_ERR_BAD_SRC_RATIO = 6
View Source
const SRC_ERR_BAD_STATE = 2
View Source
const SRC_ERR_DATA_OVERLAP = 16
View Source
const SRC_ERR_FILTER_LEN = 9
View Source
const SRC_ERR_MALLOC_FAILED = 1
View Source
const SRC_ERR_MAX_ERROR = 23
View Source
const SRC_ERR_NO_ERROR = 0
View Source
const SRC_ERR_NO_PRIVATE = 5
View Source
const SRC_ERR_NO_VARIABLE_RATIO = 20
View Source
const SRC_ERR_NULL_CALLBACK = 19
View Source
const SRC_ERR_SHIFT_BITS = 8
View Source
const SRC_ERR_SINC_BAD_BUFFER_LEN = 12
View Source
const SRC_ERR_SINC_PREPARE_DATA_BAD_LEN = 21
View Source
const SRC_ERR_SIZE_INCOMPATIBILITY = 13
View Source
const SRC_FALSE = 0
View Source
const SRC_LINEAR = 4
View Source
const SRC_MODE_CALLBACK = 1
View Source
const SRC_MODE_PROCESS = 0
View Source
const SRC_SINC_BEST_QUALITY = 0
View Source
const SRC_SINC_FASTEST = 2
View Source
const SRC_SINC_MEDIUM_QUALITY = 1
View Source
const SRC_TRUE = 1
View Source
const SRC_ZERO_ORDER_HOLD = 3

Variables

This section is empty.

Functions

func Xlinear_get_description

func Xlinear_get_description(tls *libc.TLS, src_enum int32) (r uintptr)

linear_get_name

func Xlinear_get_name

func Xlinear_get_name(tls *libc.TLS, src_enum int32) (r uintptr)

------------------------------------------------------------------------------

func Xlinear_state_new

func Xlinear_state_new(tls *libc.TLS, channels int32, error1 uintptr) (r uintptr)

func Xsinc_get_description

func Xsinc_get_description(tls *libc.TLS, src_enum int32) (r uintptr)

sinc_get_descrition

func Xsinc_get_name

func Xsinc_get_name(tls *libc.TLS, src_enum int32) (r uintptr)

----------------------------------------------------------------------------------------

func Xsinc_state_new

func Xsinc_state_new(tls *libc.TLS, converter_type int32, channels int32, error1 uintptr) (r uintptr)

func Xsrc_callback_new

func Xsrc_callback_new(tls *libc.TLS, __ccgo_fp_func Tsrc_callback_t, converter_type int32, channels int32, error1 uintptr, cb_data uintptr) (r uintptr)

func Xsrc_callback_read

func Xsrc_callback_read(tls *libc.TLS, state uintptr, src_ratio float64, frames int64, data uintptr) (r int64)

func Xsrc_clone

func Xsrc_clone(tls *libc.TLS, orig uintptr, error1 uintptr) (r uintptr)

func Xsrc_delete

func Xsrc_delete(tls *libc.TLS, state uintptr) (r uintptr)

func Xsrc_error

func Xsrc_error(tls *libc.TLS, state uintptr) (r int32)

func Xsrc_float_to_int_array

func Xsrc_float_to_int_array(tls *libc.TLS, in uintptr, out uintptr, len1 int32)

func Xsrc_float_to_short_array

func Xsrc_float_to_short_array(tls *libc.TLS, in uintptr, out uintptr, len1 int32)

func Xsrc_get_channels

func Xsrc_get_channels(tls *libc.TLS, state uintptr) (r int32)

func Xsrc_get_description

func Xsrc_get_description(tls *libc.TLS, converter_type int32) (r uintptr)

func Xsrc_get_name

func Xsrc_get_name(tls *libc.TLS, converter_type int32) (r uintptr)

func Xsrc_get_version

func Xsrc_get_version(tls *libc.TLS) (r uintptr)

func Xsrc_int_to_float_array

func Xsrc_int_to_float_array(tls *libc.TLS, in uintptr, out uintptr, len1 int32)

func Xsrc_is_valid_ratio

func Xsrc_is_valid_ratio(tls *libc.TLS, ratio1 float64) (r int32)

func Xsrc_new

func Xsrc_new(tls *libc.TLS, converter_type int32, channels int32, error1 uintptr) (r uintptr)

func Xsrc_process

func Xsrc_process(tls *libc.TLS, state uintptr, data uintptr) (r int32)

func Xsrc_reset

func Xsrc_reset(tls *libc.TLS, state uintptr) (r int32)

func Xsrc_set_ratio

func Xsrc_set_ratio(tls *libc.TLS, state uintptr, new_ratio float64) (r int32)

func Xsrc_short_to_float_array

func Xsrc_short_to_float_array(tls *libc.TLS, in uintptr, out uintptr, len1 int32)

func Xsrc_simple

func Xsrc_simple(tls *libc.TLS, src_data uintptr, converter int32, channels int32) (r int32)

func Xsrc_strerror

func Xsrc_strerror(tls *libc.TLS, error1 int32) (r uintptr)

func Xzoh_get_description

func Xzoh_get_description(tls *libc.TLS, src_enum int32) (r uintptr)

zoh_get_name

func Xzoh_get_name

func Xzoh_get_name(tls *libc.TLS, src_enum int32) (r uintptr)

------------------------------------------------------------------------------

func Xzoh_state_new

func Xzoh_state_new(tls *libc.TLS, channels int32, error1 uintptr) (r uintptr)

Types

type TLINEAR_DATA

type TLINEAR_DATA = struct {
	Flinear_magic_marker int32
	Fdirty               uint8
	Fin_count            int64
	Fin_used             int64
	Fout_count           int64
	Fout_gen             int64
	Flast_value          uintptr
}

type TSINC_FILTER

type TSINC_FILTER = struct {
	Fsinc_magic_marker int32
	Fin_count          int64
	Fin_used           int64
	Fout_count         int64
	Fout_gen           int64
	Fcoeff_half_len    int32
	Findex_inc         int32
	Fsrc_ratio         float64
	Finput_index       float64
	Fcoeffs            uintptr
	Fb_current         int32
	Fb_end             int32
	Fb_real_end        int32
	Fb_len             int32
	Fleft_calc         [128]float64
	Fright_calc        [128]float64
	Fbuffer            uintptr
}

type TSRC_DATA

type TSRC_DATA = struct {
	Fdata_in           uintptr
	Fdata_out          uintptr
	Finput_frames      int64
	Foutput_frames     int64
	Finput_frames_used int64
	Foutput_frames_gen int64
	Fend_of_input      int32
	Fsrc_ratio         float64
}

type TSRC_ERROR

type TSRC_ERROR = int32

type TSRC_STATE

type TSRC_STATE = struct {
	Fvt                 uintptr
	Flast_ratio         float64
	Flast_position      float64
	Ferror1             TSRC_ERROR
	Fchannels           int32
	Fmode               _SRC_MODE
	Fcallback_func      Tsrc_callback_t
	Fuser_callback_data uintptr
	Fsaved_frames       int64
	Fsaved_data         uintptr
	Fprivate_data       uintptr
}

type TSRC_STATE_VT

type TSRC_STATE_VT = struct {
	Fvari_process  uintptr
	Fconst_process uintptr
	Freset         uintptr
	Fcopy1         uintptr
	Fclose1        uintptr
}

type TSRC_STATE_VT_tag

type TSRC_STATE_VT_tag = TSRC_STATE_VT

type TSRC_STATE_tag

type TSRC_STATE_tag = TSRC_STATE

type TZOH_DATA

type TZOH_DATA = struct {
	Fzoh_magic_marker int32
	Fdirty            uint8
	Fin_count         int64
	Fin_used          int64
	Fout_count        int64
	Fout_gen          int64
	Flast_value       uintptr
}

type T_CHECK_SHIFT_BITS

type T_CHECK_SHIFT_BITS = [1]int32

type T_G_fpos64_t

type T_G_fpos64_t = Tfpos_t
type T_IO_cookie_io_functions_t = Tcookie_io_functions_t

type Tcoeff_t

type Tcoeff_t = float32

type Tcookie_io_functions_t added in v0.0.12

type Tcookie_io_functions_t = struct {
	Fread   uintptr
	Fwrite  uintptr
	Fseek   uintptr
	Fclose1 uintptr
}

type Tdiv_t

type Tdiv_t = struct {
	Fquot int32
	Frem  int32
}

type Tdouble_t

type Tdouble_t = float64

type Tfastest_coeffs_s

type Tfastest_coeffs_s = struct {
	Fincrement int32
	Fcoeffs    [2464]Tcoeff_t
}

type Tfloat_t

type Tfloat_t = float32

type Tfpos_t

type Tfpos_t = struct {
	F__lldata [0]int64
	F__align  [0]float64
	F__opaque [16]int8
}

type Tincrement_t

type Tincrement_t = int32

type Tint8_t

type Tint8_t = int8

type Tint16_t

type Tint16_t = int16

type Tint32_t

type Tint32_t = int32

type Tint64_t

type Tint64_t = int64

type Tint_fast8_t

type Tint_fast8_t = int8

type Tint_fast16_t

type Tint_fast16_t = int32

type Tint_fast32_t

type Tint_fast32_t = int32

type Tint_fast64_t

type Tint_fast64_t = int64

type Tint_least8_t

type Tint_least8_t = int8

type Tint_least16_t

type Tint_least16_t = int16

type Tint_least32_t

type Tint_least32_t = int32

type Tint_least64_t

type Tint_least64_t = int64

type Tintmax_t

type Tintmax_t = int64

type Tintptr_t

type Tintptr_t = int64

type Tldiv_t

type Tldiv_t = struct {
	Fquot int64
	Frem  int64
}

type Tlldiv_t

type Tlldiv_t = struct {
	Fquot int64
	Frem  int64
}

type Tlocale_t

type Tlocale_t = uintptr

type Toff_t

type Toff_t = int64

type Tsize_t

type Tsize_t = uint64

type Tslow_high_qual_coeffs_s

type Tslow_high_qual_coeffs_s = struct {
	Fincrement int32
	Fcoeffs    [340239]Tcoeff_t
}

type Tslow_mid_qual_coeffs_s

type Tslow_mid_qual_coeffs_s = struct {
	Fincrement int32
	Fcoeffs    [22438]Tcoeff_t
}

type Tsrc_callback_t

type Tsrc_callback_t = uintptr

type Tssize_t

type Tssize_t = int64

type Tuint8_t

type Tuint8_t = uint8

type Tuint16_t

type Tuint16_t = uint16

type Tuint32_t

type Tuint32_t = uint32

type Tuint64_t

type Tuint64_t = uint64

type Tuint_fast8_t

type Tuint_fast8_t = uint8

type Tuint_fast16_t

type Tuint_fast16_t = uint32

type Tuint_fast32_t

type Tuint_fast32_t = uint32

type Tuint_fast64_t

type Tuint_fast64_t = uint64

type Tuint_least8_t

type Tuint_least8_t = uint8

type Tuint_least16_t

type Tuint_least16_t = uint16

type Tuint_least32_t

type Tuint_least32_t = uint32

type Tuint_least64_t

type Tuint_least64_t = uint64

type Tuintmax_t

type Tuintmax_t = uint64

type Tuintptr_t

type Tuintptr_t = uint64

type Tva_list

type Tva_list = uintptr

type Twchar_t

type Twchar_t = int32

Directories

Path Synopsis
tests
callback command
callback_hang command
clone command
downsample command
float_short command
misc command
multi_channel command
nullptr command
reset command
simple command
snr_bw command
termination command
throughput command
varispeed command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL