Files
armorpaint/base/sources/backends/wasm_audio.c
T

28 lines
407 B
C
Raw Normal View History

2025-01-18 15:46:37 +01:00
2026-05-31 14:01:36 +02:00
#ifdef IRON_AUDIO
2025-01-18 15:46:37 +01:00
2025-02-26 18:46:36 +01:00
#include <iron_audio.h>
2024-11-10 22:11:29 +01:00
#include <stdlib.h>
2025-03-09 17:02:12 +01:00
static iron_a2_buffer_t a2_buffer;
2026-05-31 17:33:00 +02:00
static bool initialized = false;
2024-11-10 22:11:29 +01:00
2025-03-09 17:02:12 +01:00
void iron_a2_init() {
2026-05-31 17:33:00 +02:00
if (initialized) {
return;
}
2025-03-09 17:02:12 +01:00
iron_a2_internal_init();
2026-05-31 17:33:00 +02:00
initialized = true;
2024-11-10 22:11:29 +01:00
}
2025-03-09 17:02:12 +01:00
void iron_a2_shutdown() {}
2024-11-10 22:11:29 +01:00
static uint32_t samples_per_second = 44100;
2025-03-09 17:02:12 +01:00
uint32_t iron_a2_samples_per_second(void) {
2024-11-10 22:11:29 +01:00
return samples_per_second;
}
2025-01-18 15:46:37 +01:00
#endif