aboutsummaryrefslogtreecommitdiff
path: root/audio.h
diff options
context:
space:
mode:
Diffstat (limited to 'audio.h')
-rw-r--r--audio.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/audio.h b/audio.h
new file mode 100644
index 0000000..c180ed0
--- /dev/null
+++ b/audio.h
@@ -0,0 +1,21 @@
+#ifndef AUDIO_H
+#define AUDIO_H
+
+#include <stdbool.h>
+
+enum samples {
+ FIRST_KEY_SAMPLE = 0,
+ LAST_KEY_SAMPLE = 5,
+ NUM_KEY_SAMPLES = 6,
+ FIRST_MOD_SAMPLE = 6,
+ LAST_MOD_SAMPLE = 7,
+ NUM_MOD_SAMPLES = 2,
+ NUM_SAMPLES = 8
+};
+
+bool audio_init();
+void audio_close();
+
+void audio_play_sample(int num_sample);
+
+#endif // AUDIO_H