diff options
| author | Doan Luu Duc Tai <doan@luuduct.ai> | 2026-09-08 14:46:47 -0500 |
|---|---|---|
| committer | Doan Luu Duc Tai <doan@luuduct.ai> | 2026-09-08 14:46:47 -0500 |
| commit | f34fb5042d40c186583f9e3009d8a1dd71d07d43 (patch) | |
| tree | 3f494f3723ebe9f173d0702a97509794f0ef85a5 /src/audio_defs.h | |
Initial commitmain
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 */ |
