npv: media pipeline
[nyanmp.git] / npv / audio / public / state.frag.h
blob4a009ad804cb9caa50c50fd8dfdeb137913745c8
1 static avcodec_codec_ctx_t *dec_ctx_p;
2 static struct {
3 pthread_mutex_t mutex;
5 bool eof_receive; /* "receiving" from the dec returned eof */
6 u32 n_max;
7 u32 n;
8 avutil_audio_set_ref_t **a;
9 } dec_sets_p;
10 static struct pkt_q_t *pkt_q_p;
12 * we copy some stream data in the case the stream does vanish or is replaced
13 * (don't know how ffmpeg does handle this)
15 static struct {
16 int idx;
17 int id;
18 avutil_rational_t tb;
19 int64_t start_time;
20 } st_p;
21 /*----------------------------------------------------------------------------*/
22 /* alsa -- start */
23 static snd_pcm_t *pcm_p;
24 constant_u32 {
25 pcm_pollfds_n_max = 16 /* banzai */
27 static bool draining_p;
28 static int draining_timer_fd_p;
29 static u8 pcm_pollfds_n_p;
30 static struct pollfd pcm_pollfds_p[pcm_pollfds_n_max];
31 static s8 selected_ts_type_p;
32 /* alsa -- end */
33 /*----------------------------------------------------------------------------*/