Home
last modified time | relevance | path

Searched refs:pcm_start (Results 1 – 4 of 4) sorted by relevance

/third_party/libsnd/src/
Dogg_vorbis.c139 uint64_t pcm_start ; member
241 vdata->pcm_start = odata->pkt [odata->pkt_len - 1].granulepos ; in vorbis_read_header()
244 if (duration < (sf_count_t) vdata->pcm_start) in vorbis_read_header()
245 vdata->pcm_start -= duration ; in vorbis_read_header()
247 vdata->pcm_start = 0 ; in vorbis_read_header()
252 vdata->loc = vdata->pcm_start ; in vorbis_read_header()
273 psf_log_printf (psf, "PCM offset : %d\n", vdata->pcm_start) ; in vorbis_read_header()
300 …psf->sf.frames = (vdata->pcm_end != (uint64_t) -1) ? vdata->pcm_end - vdata->pcm_start : SF_COUNT… in vorbis_read_header()
810 { target = offset + vdata->pcm_start ; in vorbis_seek()
821 best_gp = vdata->pcm_start ; in vorbis_seek()
[all …]
Dogg.c450 …arch (SF_PRIVATE *psf, OGG_PRIVATE *odata, uint64_t target_gp, uint64_t pcm_start, uint64_t pcm_en… in ogg_stream_seek_page_search() argument
467 *best_gp = pcm_start ; in ogg_stream_seek_page_search()
494 …bisect = begin + ogg_page_search_do_rescale (target_gp - pcm_start, pcm_end - pcm_start, end - beg… in ogg_stream_seek_page_search()
610 if (pcm_start > gp || pcm_end < gp) in ogg_stream_seek_page_search()
634 *best_gp = pcm_start = gp ; in ogg_stream_seek_page_search()
666 if (pcm_end > gp && pcm_start <= gp) in ogg_stream_seek_page_search()
Dogg.h131 uint64_t target_gp, uint64_t pcm_start, uint64_t pcm_end,
Dogg_opus.c1521 uint64_t pcm_start ; in ogg_opus_seek_page_search() local
1528 best_gp = pcm_start = oopus->u.decode.gp_start ; in ogg_opus_seek_page_search()
1535 if (target_gp < pcm_start) in ogg_opus_seek_page_search()
1536 target_gp = pcm_start ; in ogg_opus_seek_page_search()
1539 if (target_gp < pcm_start + (uint64_t) oopus->header.preskip) in ogg_opus_seek_page_search()
1544 ogg_stream_seek_page_search (psf, odata, target_gp, pcm_start, pcm_end, &best_gp, begin, end) ; in ogg_opus_seek_page_search()