summaryrefslogtreecommitdiff
path: root/src/audio.h
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2026-07-06 16:36:57 +0900
committerIan C <ianc@noddybox.co.uk>2026-07-06 16:36:57 +0900
commit77399aa2b0e70c7712b1720300b202a9fdced1e3 (patch)
tree10b8427774534acc12f916395c1b3014d7aff942 /src/audio.h
parentc527acfc79f3bda8cfe13a7b51b0b16a32683960 (diff)
Sound now working
Diffstat (limited to 'src/audio.h')
-rw-r--r--src/audio.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/audio.h b/src/audio.h
index b799abd..77fd67b 100644
--- a/src/audio.h
+++ b/src/audio.h
@@ -30,10 +30,6 @@
#include <stdlib.h>
#include <SDL.h>
-/* The sample rate
-*/
-#define SAMPLE_RATE 48000
-
/* ---------------------------------------- INTERFACES
*/
@@ -41,14 +37,14 @@
audio. All other interfaces will silently do nothing if the device
can't be opened.
*/
-int AUDIOInit(void);
+int AUDIOInit(int frequency);
-/* Add the passed buffer to the sound queue. It is an unsigned 8-bit mono
+/* Add the passed buffer to the sound queue. It is a signed 8-bit mono
sample which will be converted as appropriate by the audio interface.
Well turns out SDL does that for you.
*/
-void AUDIOQueue(Uint8 *buffer, size_t len);
+void AUDIOQueue(Sint8 *buffer, size_t len);
#endif