diff options
author | Simon Howard | 2013-09-22 22:03:32 +0000 |
---|---|---|
committer | Simon Howard | 2013-09-22 22:03:32 +0000 |
commit | c2f1c3bffe1c2922c7f5d83549bd6111b880f4c2 (patch) | |
tree | 48793942565dffc07febe17c4940cdea72c0391f | |
parent | 20fcb6053d7d9c212a2b5a9e1a4aa4be0e97040b (diff) | |
download | chocolate-doom-c2f1c3bffe1c2922c7f5d83549bd6111b880f4c2.tar.gz chocolate-doom-c2f1c3bffe1c2922c7f5d83549bd6111b880f4c2.tar.bz2 chocolate-doom-c2f1c3bffe1c2922c7f5d83549bd6111b880f4c2.zip |
Call I_PrecacheSounds() in Heretic/Hexen startup code so that sounds are
resampled for libsamplerate users.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2680
-rw-r--r-- | src/heretic/s_sound.c | 2 | ||||
-rw-r--r-- | src/hexen/s_sound.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/heretic/s_sound.c b/src/heretic/s_sound.c index e94f17a5..755206b4 100644 --- a/src/heretic/s_sound.c +++ b/src/heretic/s_sound.c @@ -532,6 +532,8 @@ void S_Init(void) S_SetMaxVolume(true); I_AtExit(S_ShutDown, true); + + I_PrecacheSounds(S_sfx, NUMSFX); } void S_GetChannelInfo(SoundInfo_t * s) diff --git a/src/hexen/s_sound.c b/src/hexen/s_sound.c index 438d4679..45890300 100644 --- a/src/hexen/s_sound.c +++ b/src/hexen/s_sound.c @@ -737,6 +737,8 @@ void S_Init(void) I_AtExit(S_ShutDown, true); + I_PrecacheSounds(S_sfx, NUMSFX); + #ifdef CDMUSIC //TODO // Attempt to setup CD music |