diff options
author | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-06-29 16:05:36 +0000 |
---|---|---|
committer | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-06-29 16:05:36 +0000 |
commit | 52fc29e109b087342abe432b6ffa563d7172d6e7 (patch) | |
tree | e63d0d2faee81f5e69ef42edf64b36823b5a06cb /src/audio.c | |
parent | bffcaf53098adaba13461e58c11d161ad047abec (diff) |
Change to 44.1 kHz audio sampling
Add 'clang' sound effect (needs work!), use for collision noise
git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@113 84d2e878-0bd5-11dd-ad15-13eda11d74c5
Diffstat (limited to 'src/audio.c')
-rw-r--r-- | src/audio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio.c b/src/audio.c index c3a0492..8e84c5e 100644 --- a/src/audio.c +++ b/src/audio.c @@ -88,7 +88,7 @@ void audio_play(AudioContext *a, char *file, float volume, int repeat) { fprintf(stderr, "Couldn't load %s: %s\n", file, SDL_GetError()); return; } - SDL_BuildAudioCVT(&cvt, wave.format, wave.channels, wave.freq, AUDIO_S16, 2, 22050); + SDL_BuildAudioCVT(&cvt, wave.format, wave.channels, wave.freq, AUDIO_S16, 2, 44100); cvt.buf = malloc(dlen*cvt.len_mult); memcpy(cvt.buf, data, dlen); cvt.len = dlen; @@ -125,7 +125,7 @@ AudioContext *audio_setup() { } /* Set 16-bit stereo audio at 22Khz */ - fmt.freq = 22050; + fmt.freq = 44100; fmt.format = AUDIO_S16; fmt.channels = 2; fmt.samples = 512; |