summaryrefslogtreecommitdiff
path: root/src/s_sound.c
diff options
context:
space:
mode:
authorSimon Howard2008-05-02 18:48:43 +0000
committerSimon Howard2008-05-02 18:48:43 +0000
commit3f54daeaa3acf590569cb397eee24731f7de6c17 (patch)
treeded285d0820cddae98b9e5c458f757c8c9ba3234 /src/s_sound.c
parent6b1ac97d99599ed5e8d8557313237f3ebb102ead (diff)
downloadchocolate-doom-3f54daeaa3acf590569cb397eee24731f7de6c17.tar.gz
chocolate-doom-3f54daeaa3acf590569cb397eee24731f7de6c17.tar.bz2
chocolate-doom-3f54daeaa3acf590569cb397eee24731f7de6c17.zip
Add W_CacheLumpNum,Name API to WAD code for releasing a lump back to
cache when it is no longer needed. Switch existing code to use the new API instead of Z_ChangeTag. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1134
Diffstat (limited to 'src/s_sound.c')
-rw-r--r--src/s_sound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/s_sound.c b/src/s_sound.c
index cc071bde..70fa75f3 100644
--- a/src/s_sound.c
+++ b/src/s_sound.c
@@ -830,7 +830,7 @@ void S_ChangeMusic(int musicnum, int looping)
{
// Load & register it
- music->data = W_CacheLumpNum(music->lumpnum, PU_MUSIC);
+ music->data = W_CacheLumpNum(music->lumpnum, PU_STATIC);
handle = music_module->RegisterSong(music->data,
W_LumpLength(music->lumpnum));
music->handle = handle;
@@ -868,7 +868,7 @@ void S_StopMusic(void)
music_module->StopSong();
music_module->UnRegisterSong(mus_playing->handle);
- Z_ChangeTag(mus_playing->data, PU_CACHE);
+ W_ReleaseLumpNum(mus_playing->lumpnum);
mus_playing->data = NULL;
}