aboutsummaryrefslogtreecommitdiff
path: root/src/sfx/esp32
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-01-29 23:58:04 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-01-30 01:16:18 +0100
commita27a35bd778d9afe9f04e7aed69d950bc4d980e8 (patch)
treecad17cb68da4a210538c15a7fba2289374c4fcc1 /src/sfx/esp32
parentc2e2343054e8d11ebaaf426d6ca105e79e93da6a (diff)
downloadjancity-a27a35bd778d9afe9f04e7aed69d950bc4d980e8.tar.gz
WIP ESP32 port
Diffstat (limited to 'src/sfx/esp32')
-rw-r--r--src/sfx/esp32/inc/sfx/port.h20
-rw-r--r--src/sfx/esp32/src/sound.c28
2 files changed, 48 insertions, 0 deletions
diff --git a/src/sfx/esp32/inc/sfx/port.h b/src/sfx/esp32/inc/sfx/port.h
new file mode 100644
index 0000000..fb8d482
--- /dev/null
+++ b/src/sfx/esp32/inc/sfx/port.h
@@ -0,0 +1,20 @@
+#ifndef SFX_ESP32_H
+#define SFX_ESP32_H
+
+#include <stdbool.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct sound
+{
+ bool loop;
+};
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* SFX_SDL1_2_H */
diff --git a/src/sfx/esp32/src/sound.c b/src/sfx/esp32/src/sound.c
new file mode 100644
index 0000000..a6a757f
--- /dev/null
+++ b/src/sfx/esp32/src/sound.c
@@ -0,0 +1,28 @@
+#include <sfx.h>
+#include <sfx/port.h>
+#include <stdbool.h>
+#include <stddef.h>
+#include <stdio.h>
+
+void sfx_free(struct sound *const s)
+{
+}
+
+int sfx_play(const struct sound *const s)
+{
+ return -1;
+}
+
+int sfx_sound_from_fp(struct sound *const s, FILE *const f, const size_t sz)
+{
+ return -1;
+}
+
+void sfx_deinit(void)
+{
+}
+
+int sfx_init(void)
+{
+ return -1;
+}