Home
last modified time | relevance | path

Searched refs:srate (Results 1 – 25 of 25) sorted by relevance

/third_party/libsnd/include/
Dsndfile.hh172 SndfileHandle::SndfileHandle (const char *path, int mode, int fmt, int chans, int srate) in SndfileHandle() argument
183 p->sfinfo.samplerate = srate ; in SndfileHandle()
194 SndfileHandle::SndfileHandle (std::string const & path, int mode, int fmt, int chans, int srate) in SndfileHandle() argument
205 p->sfinfo.samplerate = srate ; in SndfileHandle()
216 SndfileHandle::SndfileHandle (int fd, bool close_desc, int mode, int fmt, int chans, int srate) in SndfileHandle() argument
230 p->sfinfo.samplerate = srate ; in SndfileHandle()
241 …:SndfileHandle (SF_VIRTUAL_IO &sfvirtual, void *user_data, int mode, int fmt, int chans, int srate) in SndfileHandle() argument
252 p->sfinfo.samplerate = srate ; in SndfileHandle()
320 SndfileHandle::formatCheck (int fmt, int chans, int srate) in formatCheck() argument
327 sfinfo.samplerate = srate ; in formatCheck()
[all …]
/third_party/ffmpeg/libavformat/
Dcdxl.c35 int srate; member
146 cdxl->srate = AV_RB16(&cdxl->header[24]); in cdxl_read_packet()
147 if (!cdxl->srate && audio_size) in cdxl_read_packet()
148 cdxl->srate = cdxl->sample_rate; in cdxl_read_packet()
166 if (!cdxl->frate.num && audio_size && cdxl->srate > 0) { in cdxl_read_packet()
167 cdxl->frate = (AVRational){ cdxl->srate, audio_size }; in cdxl_read_packet()
183 st->codecpar->sample_rate= cdxl->srate; in cdxl_read_packet()
186 avpriv_set_pts_info(st, 64, 1, cdxl->srate); in cdxl_read_packet()
Dxa.c45 int channels, srate, bits_per_sample; in xa_probe() local
57 srate = AV_RL32(p->buf + 12); in xa_probe()
59 if (!channels || channels > 8 || !srate || srate > 192000 || in xa_probe()
Dpmpdec.c49 int srate, channels; in pmp_header() local
94 srate = avio_rl32(pb); in pmp_header()
123 ast->codecpar->sample_rate = srate; in pmp_header()
124 avpriv_set_pts_info(ast, 32, 1, srate); in pmp_header()
Doggparsevorbis.c332 int srate; in vorbis_header() local
347 srate = bytestream_get_le32(&p); in vorbis_header()
367 if (srate > 0) { in vorbis_header()
368 st->codecpar->sample_rate = srate; in vorbis_header()
369 avpriv_set_pts_info(st, 64, 1, srate); in vorbis_header()
/third_party/libsnd/src/
Ddwd.c119 unsigned short srate, maxval ; member
139 psf_binheader_readf (psf, "e211", &dwdh.srate, &dwdh.channels, &dwdh.bitwidth) ; in dwd_read_header()
156 dwdh.srate, dwdh.channels, dwdh.bitwidth) ; in dwd_read_header()
190 psf->sf.samplerate = dwdh.srate ; in dwd_read_header()
Dtxw.c92 { unsigned char format, srate, sr2, sr3 ; member
141 psf_binheader_readf (psf, "j11", 6, &txwh.format, &txwh.srate) ; in txw_read_header()
168 switch (txwh.srate) in txw_read_header()
208 …psf_log_printf (psf, " Sample Rate : %d (0x%X) => %d\n", txwh.srate, txwh.srhash, psf->sf.samplera… in txw_read_header()
210 psf_log_printf (psf, " Sample Rate : %d => %d\n", txwh.srate, psf->sf.samplerate) ; in txw_read_header()
Davr.c53 int srate ; /* sample frequency in hertz */ member
151 psf_binheader_readf (psf, "E4444", &hdr.srate, &hdr.frames, &hdr.lbeg, &hdr.lend) ; in avr_read_header()
154 psf->sf.samplerate = hdr.srate ; in avr_read_header()
Dcaf.c78 { uint8_t srate [8] ; member
346 double srate ; in caf_read_header() local
362 srate = double64_be_read (ubuf.ucbuf) ; in caf_read_header()
363 snprintf (ubuf.cbuf, sizeof (ubuf.cbuf), "%5.3f", srate) ; in caf_read_header()
373 psf->sf.samplerate = psf_lrint (srate) ; in caf_read_header()
/third_party/alsa-lib/src/pcm/
Dpcm_plug.c52 int srate; member
726 if (plug->srate > 0) in snd_pcm_plug_hw_refine_sprepare()
728 plug->srate, 0, plug->srate + 1, -1); in snd_pcm_plug_hw_refine_sprepare()
795 const snd_interval_t *srate, *crate; in snd_pcm_plug_hw_refine_schange() local
797 if (plug->srate == -2 || in snd_pcm_plug_hw_refine_schange()
871 srate = snd_pcm_hw_param_get_interval(sparams, SND_PCM_HW_PARAM_RATE); in snd_pcm_plug_hw_refine_schange()
872 snd_interval_muldiv(&buffer_size, srate, crate, &t); in snd_pcm_plug_hw_refine_schange()
896 const snd_interval_t *srate, *crate; in snd_pcm_plug_hw_refine_cchange() local
944 if (plug->srate == -2 || in snd_pcm_plug_hw_refine_cchange()
972 srate = snd_pcm_hw_param_get_interval(sparams, SND_PCM_HW_PARAM_RATE); in snd_pcm_plug_hw_refine_cchange()
[all …]
Dpcm_rate.c58 unsigned int srate; member
167 rate->srate, 0, rate->srate + 1, -1); in snd_pcm_rate_hw_refine_sprepare()
176 const snd_interval_t *srate, *crate; in snd_pcm_rate_hw_refine_schange() local
189 srate = snd_pcm_hw_param_get_interval(sparams, SND_PCM_HW_PARAM_RATE); in snd_pcm_rate_hw_refine_schange()
190 snd_interval_muldiv(&buffer_size, srate, crate, &t); in snd_pcm_rate_hw_refine_schange()
209 const snd_interval_t *srate, *crate; in snd_pcm_rate_hw_refine_cchange() local
221 srate = snd_pcm_hw_param_get_interval(sparams, SND_PCM_HW_PARAM_RATE); in snd_pcm_rate_hw_refine_cchange()
222 snd_interval_muldiv(sbuffer_size, crate, srate, &t); in snd_pcm_rate_hw_refine_cchange()
1249 rate->srate); in snd_pcm_rate_dump()
1252 rate->srate, in snd_pcm_rate_dump()
[all …]
Dpcm_share.c1373 snd_pcm_format_t sformat, int srate, in snd_pcm_share_open() argument
1493 slave->rate = srate; in snd_pcm_share_open()
1615 int srate = -1; in _snd_pcm_share_open() local
1648 SND_PCM_HW_PARAM_RATE, 0, &srate, in _snd_pcm_share_open()
1714 err = snd_pcm_share_open(pcmp, name, sname, sformat, srate, in _snd_pcm_share_open()
/third_party/ffmpeg/libavfilter/
Daf_bs2b.c166 int srate = inlink->sample_rate; in config_output() local
188 if ((srate < BS2B_MINSRATE) || (srate > BS2B_MAXSRATE)) in config_output()
191 bs2b_set_srate(bs2b->bs2bp, srate); in config_output()
Daf_apulsator.c37 int srate; member
87 lfo->phase = fabs(lfo->phase + count * lfo->freq / lfo->srate); in lfo_advance()
221 s->lfoL.srate = inlink->sample_rate; in config_input()
222 s->lfoR.srate = inlink->sample_rate; in config_input()
Daf_aexciter.c82 double srate, double freq, in set_params() argument
94 p->srct = (0.1 * srate) / (0.1 * srate + 1.0); in set_params()
102 w0 = 2 * M_PI * freq / srate; in set_params()
117 w0 = 2 * M_PI * ceil / srate; in set_params()
Daf_silencedetect.c177 const int srate = inlink->sample_rate; in filter_frame() local
183 if (s->last_sample_rate && s->last_sample_rate != srate) in filter_frame()
185 s->nb_null_samples[c] = srate * s->nb_null_samples[c] / s->last_sample_rate; in filter_frame()
187 s->last_sample_rate = srate; in filter_frame()
Dformats.c636 double srate = av_strtod(arg, &tail); in ff_parse_sample_rate() local
637 if (*tail || srate < 1 || (int)srate != srate || srate > INT_MAX) { in ff_parse_sample_rate()
641 *ret = srate; in ff_parse_sample_rate()
Daf_acrusher.c29 int srate; member
211 lfo->phase = fabs(lfo->phase + count * lfo->freq * (1. / lfo->srate)); in lfo_advance()
325 s->lfo.srate = inlink->sample_rate; in config_input()
Dbuffersrc.c77 #define CHECK_AUDIO_PARAM_CHANGE(s, c, srate, ch_layout, ch_count, format, pts)\ argument
78 if (c->sample_fmt != format || c->sample_rate != srate ||\
82 …av_get_sample_fmt_name(format), srate, ch_layout, ch_count, av_ts2timestr(pts, &s->outputs[0]->tim…
/third_party/libsnd/examples/
Dsndfilehandle.cc32 int srate = 48000 ; in create_file() local
36 file = SndfileHandle (fname, SFM_WRITE, format, channels, srate) ; in create_file()
/third_party/libsnd/programs/
Dsndfile-play.c87 static snd_pcm_t * alsa_open (int channels, unsigned srate, int realtime) ;
358 static int opensoundsys_open_device (int channels, int srate) ;
422 opensoundsys_open_device (int channels, int srate) in opensoundsys_open_device() argument
454 if (ioctl (fd, SNDCTL_DSP_SPEED, &srate) != 0) in opensoundsys_open_device()
/third_party/alsa-lib/include/
Dpcm_plugin.h160 snd_pcm_format_t sformat, unsigned int srate,
/third_party/flutter/skia/third_party/externals/sdl/src/audio/paudio/
DSDL_paudio.c326 paud_init.srate = this->spec.freq; in PAUDIO_OpenDevice()
/third_party/libsnd/tests/
Dutils.tpl61 void write_mono_file (const char * filename, int format, int srate, float * output, int len) ;
855 write_mono_file (const char * filename, int format, int srate, float * output, int len)
861 sfinfo.samplerate = srate ;
/third_party/gstreamer/gstplugins_base/gst/videorate/
Dgstvideorate.c970 gdouble srate; in gst_video_rate_src_event() local
976 gst_event_parse_seek (event, &srate, NULL, &flags, &start_type, &start, in gst_video_rate_src_event()
985 event = gst_event_new_seek (srate, GST_FORMAT_TIME, in gst_video_rate_src_event()