diff options
| author | Ian C <ianc@noddybox.co.uk> | 2026-07-06 16:36:57 +0900 |
|---|---|---|
| committer | Ian C <ianc@noddybox.co.uk> | 2026-07-06 16:36:57 +0900 |
| commit | 77399aa2b0e70c7712b1720300b202a9fdced1e3 (patch) | |
| tree | 10b8427774534acc12f916395c1b3014d7aff942 /src/audio.c | |
| parent | c527acfc79f3bda8cfe13a7b51b0b16a32683960 (diff) | |
Sound now working
Diffstat (limited to 'src/audio.c')
| -rw-r--r-- | src/audio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio.c b/src/audio.c index 7eef433..e55520b 100644 --- a/src/audio.c +++ b/src/audio.c @@ -37,11 +37,11 @@ static SDL_AudioDeviceID device; /* ---------------------------------------- INTERFACES */ -int AUDIOInit(void) +int AUDIOInit(int frequency) { SDL_AudioSpec spec = {0}; - spec.freq = SAMPLE_RATE; + spec.freq = frequency; spec.format = AUDIO_S8; spec.channels = 1; spec.samples = 4096; @@ -56,7 +56,7 @@ int AUDIOInit(void) return device != 0; } -void AUDIOQueue(Uint8 *buffer, size_t len) +void AUDIOQueue(Sint8 *buffer, size_t len) { if (device != 0) { |
