/* 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 #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 */