Home | History | Annotate | Download | only in audio

Lines Matching defs:ptrack

429 	if (file->ptrack)
430 snprintf(phdr, sizeof(phdr), "#%d", file->ptrack->id);
1457 if (file->ptrack || file->rtrack) {
1870 if (file->ptrack)
1871 audio_track_destroy(file->ptrack);
2256 KASSERT(file->ptrack);
2257 audio_track_destroy(file->ptrack);
2398 af->ptrack = audio_track_create(sc, sc->sc_pmixer);
2496 if (af->ptrack) {
2519 if (af->ptrack && sc->sc_popens == 0) {
2576 if (af->ptrack)
2608 if (af->ptrack)
2642 if (af->ptrack) {
2643 audio_track_destroy(af->ptrack);
2644 af->ptrack = NULL;
2663 if (file->ptrack) {
2665 audio_track_drain(sc, file->ptrack);
2715 if (file->ptrack) {
2716 TRACET(3, file->ptrack, "dropframes=%" PRIu64,
2717 file->ptrack->dropframes);
2894 if (file->ptrack)
2895 audio_track_clear(sc, file->ptrack);
2912 track = file->ptrack;
3122 track = (cmd == AUDIO_PERROR) ? file->ptrack : file->rtrack;
3163 track = file->ptrack;
3168 TRACEF(2, file, "%s no ptrack", pre);
3190 track = file->ptrack;
3196 TRACEF(2, file, "%s no ptrack", pre);
3234 track = file->ptrack;
3241 TRACEF(2, file, "%s no ptrack", pre);
3442 track = file->ptrack;
3546 track = file->ptrack;
3635 track = file->ptrack;
3641 track = file->ptrack;
5599 audio_track_t *track = f->ptrack;
6549 audio_track_t *track = f->ptrack;
7234 audio_track_t *ptrack;
7253 ptrack = file->ptrack;
7331 if (ptrack) {
7332 pfmt = ptrack->usrbuf.fmt;
7333 saved_pfmt = ptrack->usrbuf.fmt;
7334 saved_ai.play.pause = ptrack->is_pause;
7368 pchanges = audio_track_setinfo_check(ptrack, &pfmt, pi);
7409 if (ptrack) {
7410 snprintf(nbuf, sizeof(nbuf), "%d", ptrack->id);
7445 if (ptrack)
7446 ptrack->is_pause = pi->pause;
7450 if (ptrack) {
7451 audio_track_lock_enter(ptrack);
7452 error = audio_track_set_format(ptrack, &pfmt);
7453 audio_track_lock_exit(ptrack);
7455 TRACET(1, ptrack, "set play.params failed");
7463 if (ptrack)
7464 audio_track_setinfo_water(ptrack, ai);
7498 if (ptrack && error != ENOMEM) {
7499 ptrack->is_pause = saved_ai.play.pause;
7500 audio_track_lock_enter(ptrack);
7501 audio_track_set_format(ptrack, &saved_pfmt);
7502 audio_track_lock_exit(ptrack);
7807 audio_track_t *ptrack;
7815 ptrack = file->ptrack;
7820 if (ptrack) {
7821 pi->sample_rate = ptrack->usrbuf.fmt.sample_rate;
7822 pi->channels = ptrack->usrbuf.fmt.channels;
7823 pi->precision = ptrack->usrbuf.fmt.precision;
7824 pi->encoding = ptrack->usrbuf.fmt.encoding;
7825 pi->pause = ptrack->is_pause;
7849 if (ptrack) {
7850 pi->seek = ptrack->usrbuf.used;
7851 pi->samples = ptrack->stamp * ptrack->usrbuf_blksize;
7852 pi->eof = ptrack->eofcounter;
7853 pi->error = (ptrack->dropframes != 0) ? 1 : 0;
7855 pi->buffer_size = ptrack->usrbuf.capacity;
7876 * Here, I use play info precedencely if ptrack is available,
7882 track = ptrack ? ptrack : rtrack;
7894 if (ptrack == NULL)
7898 if (ptrack == NULL && rtrack == NULL) {