blob: b1d6a856b25c2ba85e422cd1651b6aa1b5b21f0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/* SPDX-License-Identifier: GPL-3.0-or-later */
/*
* vfetch - neofetch but the ascii part is a video
*
* Copyright (C) 2026 Doan Luu Duc Tai
*
*/
#ifndef SRC__AUDIO_DEFS_H
#define SRC__AUDIO_DEFS_H
#include <stdint.h>
#include "miniaudio.h"
#include "pl_mpeg.h"
typedef struct AppState AppState;
typedef struct AudioState {
plm_t *plm;
ma_device device;
double output_latency_seconds;
AppState *state;
float *sample_buffer;
uint32_t buffer_index;
uint32_t buffer_count;
_Atomic uint64_t frames_consumed;
} AudioState;
#endif /* SRC__AUDIO_DEFS_H */
|