Home
last modified time | relevance | path

Searched refs:sr_hz (Results 1 – 7 of 7) sorted by relevance

/liblc3-3.5.0-3.4.0/include/
Dlc3_private.h33 #define __LC3_NS(dt_us, sr_hz) \ argument
34 ( (dt_us * sr_hz) / 1000 / 1000 )
36 #define __LC3_ND(dt_us, sr_hz) \ argument
37 ( (dt_us) == 7500 ? 23 * __LC3_NS(dt_us, sr_hz) / 30 \
38 : 5 * __LC3_NS(dt_us, sr_hz) / 8 )
40 #define __LC3_NT(sr_hz) \ argument
41 ( (5 * sr_hz) / 4000 )
43 #define __LC3_NH(dt_us, sr_hz) \ argument
44 ( ((3 - ((dt_us) >= 10000)) + 1) * __LC3_NS(dt_us, sr_hz) )
114 #define LC3_ENCODER_BUFFER_COUNT(dt_us, sr_hz) \ argument
[all …]
Dlc3.h199 int lc3_frame_samples(int dt_us, int sr_hz);
223 int lc3_delay_samples(int dt_us, int sr_hz);
234 unsigned lc3_encoder_size(int dt_us, int sr_hz);
251 int dt_us, int sr_hz, int sr_pcm_hz, void *mem);
274 unsigned lc3_decoder_size(int dt_us, int sr_hz);
291 int dt_us, int sr_hz, int sr_pcm_hz, void *mem);
/liblc3-3.5.0-3.4.0/test/
Dlc3_py.c32 int dt_us, sr_hz; in setup_encoder_py() local
34 if (!PyArg_ParseTuple(args, "ii", &dt_us, &sr_hz)) in setup_encoder_py()
38 CTYPES_CHECK("sr_hz", LC3_CHECK_SR_HZ(sr_hz)); in setup_encoder_py()
40 lc3_encoder_t encoder = lc3_setup_encoder(dt_us, sr_hz, 0, in setup_encoder_py()
41 malloc(lc3_encoder_size(dt_us, sr_hz))); in setup_encoder_py()
81 int dt_us, sr_hz; in setup_decoder_py() local
83 if (!PyArg_ParseTuple(args, "ii", &dt_us, &sr_hz)) in setup_decoder_py()
87 CTYPES_CHECK("sr_hz", LC3_CHECK_SR_HZ(sr_hz)); in setup_decoder_py()
89 lc3_decoder_t decoder = lc3_setup_decoder(dt_us, sr_hz, 0, in setup_decoder_py()
90 malloc(lc3_decoder_size(dt_us, sr_hz))); in setup_decoder_py()
Dencoder.py35 def __init__(self, dt_ms, sr_hz): argument
40 32000: T.SRATE_32K, 48000: T.SRATE_48K }[sr_hz]
159 (sr_hz, pcm) = wavfile.read(args.wav_file.name)
160 if sr_hz not in (8000, 16000, 24000, 320000, 48000):
161 raise ValueError('Unsupported input samplerate: %d' % sr_hz)
167 enc = Encoder(args.dt, sr_hz)
168 enc_c = lc3.setup_encoder(int(args.dt * 1000), sr_hz)
170 frame_samples = int((args.dt * sr_hz) / 1000)
179 sr_hz // 100, args.bitrate // 100, 1, int(args.dt * 100), 0, len(pcm))
Ddecoder.py34 def __init__(self, dt_ms, sr_hz): argument
39 32000: T.SRATE_32K, 48000: T.SRATE_48K }[sr_hz]
148 sr_hz = header[2] * 100 variable
157 dec = Decoder(dt_ms, sr_hz)
158 dec_c = lc3.setup_decoder(int(dt_ms * 1000), sr_hz)
193 wavfile.write(args.pyout.name, sr_hz, pcm_py)
195 wavfile.write(args.cout.name, sr_hz, pcm_c)
/liblc3-3.5.0-3.4.0/src/
Dlc3.c79 int lc3_frame_samples(int dt_us, int sr_hz) in lc3_frame_samples() argument
82 enum lc3_srate sr = resolve_sr(sr_hz); in lc3_frame_samples()
131 int lc3_delay_samples(int dt_us, int sr_hz) in lc3_delay_samples() argument
134 enum lc3_srate sr = resolve_sr(sr_hz); in lc3_delay_samples()
332 unsigned lc3_encoder_size(int dt_us, int sr_hz) in lc3_encoder_size() argument
335 resolve_sr(sr_hz) >= LC3_NUM_SRATE) in lc3_encoder_size()
339 LC3_ENCODER_BUFFER_COUNT(dt_us, sr_hz) * sizeof(float); in lc3_encoder_size()
346 int dt_us, int sr_hz, int sr_pcm_hz, void *mem) in lc3_setup_encoder() argument
349 sr_pcm_hz = sr_hz; in lc3_setup_encoder()
352 enum lc3_srate sr = resolve_sr(sr_hz); in lc3_setup_encoder()
[all …]
Dcommon.h116 #define LC3_NT(sr_hz) \ argument