npv:vulkan synchronization less wrong
[nyanmp.git] / npv / audio / public / state.frag.h
blob60d54e369ac03d168a8f763c327ebc5cfedd7bde
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 npv_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 /*----------------------------------------------------------------------------*/