diff options
Diffstat (limited to 'src/audio.h')
| -rw-r--r-- | src/audio.h | 10 |
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 |
