ac audio architecture refactoring

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3760 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-11-25 22:50:35 +00:00
parent f515200c37
commit 74e1468ee3
25 changed files with 4519 additions and 4184 deletions
+4 -4
View File
@@ -192,19 +192,19 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
}
case SV_SOUND:
playsound(getint(p), d);
audiomgr.playsound(getint(p), d);
break;
case SV_VOICECOMTEAM:
{
playerent *d = getclient(getint(p));
if(d) d->lastvoicecom = lastmillis;
playsound(getint(p), SP_HIGH);
audiomgr.playsound(getint(p), SP_HIGH);
break;
}
case SV_VOICECOM:
{
playsound(getint(p), SP_HIGH);
audiomgr.playsound(getint(p), SP_HIGH);
if(d) d->lastvoicecom = lastmillis;
break;
}
@@ -539,7 +539,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
ents[i].attr4 = getint(p);
ents[i].spawned = false;
if(ents[i].type==LIGHT || to==LIGHT) calclight();
if(ents[i].type==SOUND) preloadmapsound(ents[i]);
if(ents[i].type==SOUND) audiomgr.preloadmapsound(ents[i]);
break;
}