Lines Matching refs:ptrack
429 if (file->ptrack)
430 snprintf(phdr, sizeof(phdr), "#%d", file->ptrack->id);
1456 if (file->ptrack || file->rtrack) {
1869 if (file->ptrack)
1870 audio_track_destroy(file->ptrack);
2255 KASSERT(file->ptrack);
2256 audio_track_destroy(file->ptrack);
2397 af->ptrack = audio_track_create(sc, sc->sc_pmixer);
2495 if (af->ptrack) {
2518 if (af->ptrack && sc->sc_popens == 0) {
2575 if (af->ptrack)
2607 if (af->ptrack)
2641 if (af->ptrack) {
2642 audio_track_destroy(af->ptrack);
2643 af->ptrack = NULL;
2662 if (file->ptrack) {
2664 audio_track_drain(sc, file->ptrack);
2714 if (file->ptrack) {
2715 TRACET(3, file->ptrack, "dropframes=%" PRIu64,
2716 file->ptrack->dropframes);
2893 if (file->ptrack)
2894 audio_track_clear(sc, file->ptrack);
2911 track = file->ptrack;
3121 track = (cmd == AUDIO_PERROR) ? file->ptrack : file->rtrack;
3162 track = file->ptrack;
3167 TRACEF(2, file, "%s no ptrack", pre);
3189 track = file->ptrack;
3195 TRACEF(2, file, "%s no ptrack", pre);
3233 track = file->ptrack;
3240 TRACEF(2, file, "%s no ptrack", pre);
3441 track = file->ptrack;
3545 track = file->ptrack;
3634 track = file->ptrack;
3640 track = file->ptrack;
5598 audio_track_t *track = f->ptrack;
6548 audio_track_t *track = f->ptrack;
7233 audio_track_t *ptrack;
7252 ptrack = file->ptrack;
7330 if (ptrack) {
7331 pfmt = ptrack->usrbuf.fmt;
7332 saved_pfmt = ptrack->usrbuf.fmt;
7333 saved_ai.play.pause = ptrack->is_pause;
7367 pchanges = audio_track_setinfo_check(ptrack, &pfmt, pi);
7408 if (ptrack) {
7409 snprintf(nbuf, sizeof(nbuf), "%d", ptrack->id);
7444 if (ptrack)
7445 ptrack->is_pause = pi->pause;
7449 if (ptrack) {
7450 audio_track_lock_enter(ptrack);
7451 error = audio_track_set_format(ptrack, &pfmt);
7452 audio_track_lock_exit(ptrack);
7454 TRACET(1, ptrack, "set play.params failed");
7462 if (ptrack)
7463 audio_track_setinfo_water(ptrack, ai);
7497 if (ptrack && error != ENOMEM) {
7498 ptrack->is_pause = saved_ai.play.pause;
7499 audio_track_lock_enter(ptrack);
7500 audio_track_set_format(ptrack, &saved_pfmt);
7501 audio_track_lock_exit(ptrack);
7806 audio_track_t *ptrack;
7814 ptrack = file->ptrack;
7819 if (ptrack) {
7820 pi->sample_rate = ptrack->usrbuf.fmt.sample_rate;
7821 pi->channels = ptrack->usrbuf.fmt.channels;
7822 pi->precision = ptrack->usrbuf.fmt.precision;
7823 pi->encoding = ptrack->usrbuf.fmt.encoding;
7824 pi->pause = ptrack->is_pause;
7848 if (ptrack) {
7849 pi->seek = ptrack->usrbuf.used;
7850 pi->samples = ptrack->stamp * ptrack->usrbuf_blksize;
7851 pi->eof = ptrack->eofcounter;
7852 pi->error = (ptrack->dropframes != 0) ? 1 : 0;
7854 pi->buffer_size = ptrack->usrbuf.capacity;
7875 * Here, I use play info precedencely if ptrack is available,
7881 track = ptrack ? ptrack : rtrack;
7893 if (ptrack == NULL)
7897 if (ptrack == NULL && rtrack == NULL) {