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
- func Xlinear_get_description(tls *libc.TLS, src_enum int32) (r uintptr)
- func Xlinear_get_name(tls *libc.TLS, src_enum int32) (r uintptr)
- func Xlinear_state_new(tls *libc.TLS, channels int32, error1 uintptr) (r uintptr)
- func Xsinc_get_description(tls *libc.TLS, src_enum int32) (r uintptr)
- func Xsinc_get_name(tls *libc.TLS, src_enum int32) (r uintptr)
- func Xsinc_state_new(tls *libc.TLS, converter_type int32, channels int32, error1 uintptr) (r uintptr)
- func Xsrc_callback_new(tls *libc.TLS, __ccgo_fp_func Tsrc_callback_t, converter_type int32, ...) (r uintptr)
- func Xsrc_callback_read(tls *libc.TLS, state uintptr, src_ratio float64, frames int64, data uintptr) (r int64)
- func Xsrc_clone(tls *libc.TLS, orig uintptr, error1 uintptr) (r uintptr)
- func Xsrc_delete(tls *libc.TLS, state uintptr) (r uintptr)
- func Xsrc_error(tls *libc.TLS, state uintptr) (r int32)
- func Xsrc_float_to_int_array(tls *libc.TLS, in uintptr, out uintptr, len1 int32)
- func Xsrc_float_to_short_array(tls *libc.TLS, in uintptr, out uintptr, len1 int32)
- func Xsrc_get_channels(tls *libc.TLS, state uintptr) (r int32)
- func Xsrc_get_description(tls *libc.TLS, converter_type int32) (r uintptr)
- func Xsrc_get_name(tls *libc.TLS, converter_type int32) (r uintptr)
- func Xsrc_get_version(tls *libc.TLS) (r uintptr)
- func Xsrc_int_to_float_array(tls *libc.TLS, in uintptr, out uintptr, len1 int32)
- func Xsrc_is_valid_ratio(tls *libc.TLS, ratio1 float64) (r int32)
- func Xsrc_new(tls *libc.TLS, converter_type int32, channels int32, error1 uintptr) (r uintptr)
- func Xsrc_process(tls *libc.TLS, state uintptr, data uintptr) (r int32)
- func Xsrc_reset(tls *libc.TLS, state uintptr) (r int32)
- func Xsrc_set_ratio(tls *libc.TLS, state uintptr, new_ratio float64) (r int32)
- func Xsrc_short_to_float_array(tls *libc.TLS, in uintptr, out uintptr, len1 int32)
- func Xsrc_simple(tls *libc.TLS, src_data uintptr, converter int32, channels int32) (r int32)
- func Xsrc_strerror(tls *libc.TLS, error1 int32) (r uintptr)
- func Xzoh_get_description(tls *libc.TLS, src_enum int32) (r uintptr)
- func Xzoh_get_name(tls *libc.TLS, src_enum int32) (r uintptr)
- func Xzoh_state_new(tls *libc.TLS, channels int32, error1 uintptr) (r uintptr)
- type TLINEAR_DATA
- type TSINC_FILTER
- type TSRC_DATA
- type TSRC_ERROR
- type TSRC_STATE
- type TSRC_STATE_VT
- type TSRC_STATE_VT_tag
- type TSRC_STATE_tag
- type TZOH_DATA
- type T_CHECK_SHIFT_BITS
- type T_G_fpos64_t
- type T_IO_cookie_io_functions_t
- type Tcoeff_t
- type Tcookie_io_functions_t
- type Tdiv_t
- type Tdouble_t
- type Tfastest_coeffs_s
- type Tfloat_t
- type Tfpos_t
- type Tincrement_t
- type Tint8_t
- type Tint16_t
- type Tint32_t
- type Tint64_t
- type Tint_fast8_t
- type Tint_fast16_t
- type Tint_fast32_t
- type Tint_fast64_t
- type Tint_least8_t
- type Tint_least16_t
- type Tint_least32_t
- type Tint_least64_t
- type Tintmax_t
- type Tintptr_t
- type Tldiv_t
- type Tlldiv_t
- type Tlocale_t
- type Toff_t
- type Tsize_t
- type Tslow_high_qual_coeffs_s
- type Tslow_mid_qual_coeffs_s
- type Tsrc_callback_t
- type Tssize_t
- type Tuint8_t
- type Tuint16_t
- type Tuint32_t
- type Tuint64_t
- type Tuint_fast8_t
- type Tuint_fast16_t
- type Tuint_fast32_t
- type Tuint_fast64_t
- type Tuint_least8_t
- type Tuint_least16_t
- type Tuint_least32_t
- type Tuint_least64_t
- type Tuintmax_t
- type Tuintptr_t
- type Tva_list
- type Twchar_t
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 ¶
linear_get_name
func Xlinear_get_name ¶
------------------------------------------------------------------------------
func Xlinear_state_new ¶
func Xsinc_get_description ¶
sinc_get_descrition
func Xsinc_get_name ¶
----------------------------------------------------------------------------------------
func Xsinc_state_new ¶
func Xsrc_callback_new ¶
func Xsrc_callback_read ¶
func Xsrc_float_to_int_array ¶
func Xsrc_get_description ¶
func Xsrc_get_version ¶
func Xsrc_int_to_float_array ¶
func Xsrc_set_ratio ¶
func Xsrc_simple ¶
func Xzoh_get_description ¶
zoh_get_name
func Xzoh_get_name ¶
------------------------------------------------------------------------------
Types ¶
type TLINEAR_DATA ¶
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_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_tag ¶
type TSRC_STATE_VT_tag = TSRC_STATE_VT
type TSRC_STATE_tag ¶
type TSRC_STATE_tag = TSRC_STATE
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 ¶ added in v0.0.12
type T_IO_cookie_io_functions_t = Tcookie_io_functions_t
type Tcookie_io_functions_t ¶ added in v0.0.12
type Tcookie_io_functions_t = struct {
}
type Tfastest_coeffs_s ¶
type Tincrement_t ¶
type Tincrement_t = int32
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 Tslow_mid_qual_coeffs_s ¶
type Tsrc_callback_t ¶
type Tsrc_callback_t = uintptr
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
Directories
¶
| Path | Synopsis |
|---|---|
|
tests
|
|
|
callback
command
|
|
|
callback_hang
command
|
|
|
clone
command
|
|
|
downsample
command
|
|
|
float_short
command
|
|
|
misc
command
|
|
|
multi_channel
command
|
|
|
multichan_throughput
command
|
|
|
nullptr
command
|
|
|
reset
command
|
|
|
simple
command
|
|
|
snr_bw
command
|
|
|
termination
command
|
|
|
throughput
command
|
|
|
varispeed
command
|
Click to show internal directories.
Click to hide internal directories.