From 77399aa2b0e70c7712b1720300b202a9fdced1e3 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 6 Jul 2026 16:36:57 +0900 Subject: Sound now working --- src/audio.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/audio.h') 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 #include -/* 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 -- cgit v1.3