diff options
Diffstat (limited to 'src/audio_defs.h')
| -rw-r--r-- | src/audio_defs.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/audio_defs.h b/src/audio_defs.h new file mode 100644 index 0000000..b1d6a85 --- /dev/null +++ b/src/audio_defs.h @@ -0,0 +1,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 */ |
