mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
With dndebug, show the currently playing sounds.
The format is snd #<sound number> inst <instance of that sound>: voice <internal voice handle>, ow <owner's sprite ID/-1> (this is the interesting part) git-svn-id: https://svn.eduke32.com/eduke32@2441 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
139b2086c1
commit
a2328cd597
2 changed files with 28 additions and 4 deletions
|
@ -645,12 +645,35 @@ static void G_ShowCacheLocks(void)
|
|||
break;
|
||||
|
||||
Bsprintf(tempbuf,"RTS Locked %d:",i);
|
||||
printext256(0L,k,31,-1,tempbuf,1);
|
||||
printext256(0,k,31,-1,tempbuf,1);
|
||||
k += 6;
|
||||
}
|
||||
|
||||
if (k >= ydim-12 && k<ydim-6)
|
||||
printext256(0L,k,31,-1,"(MORE . . .)",1);
|
||||
printext256(0,k,31,-1,"(MORE . . .)",1);
|
||||
|
||||
// sounds
|
||||
if (xdim < 640)
|
||||
return;
|
||||
|
||||
k = 18;
|
||||
for (i=0; i<=g_maxSoundPos; i++)
|
||||
if (g_sounds[i].num > 0)
|
||||
{
|
||||
int32_t j, n=g_sounds[i].num;
|
||||
|
||||
for (j=0; j<n; j++)
|
||||
{
|
||||
if (k >= ydim-12)
|
||||
break;
|
||||
|
||||
Bsprintf(tempbuf, "snd #%d inst %d: voice %d, ow %d", i, j,
|
||||
g_sounds[i].SoundOwner[j].voice, g_sounds[i].SoundOwner[j].i);
|
||||
printext256(240,k,31,-1,tempbuf,0);
|
||||
|
||||
k += 9;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int32_t A_CheckInventorySprite(spritetype *s)
|
||||
|
|
|
@ -395,7 +395,7 @@ int32_t S_PlaySound3D(int32_t num, int32_t i, const vec3_t *pos)
|
|||
(g_player[myconnectindex].ps->timebeforeexit > 0 && g_player[myconnectindex].ps->timebeforeexit <= GAMETICSPERSEC*3) ||
|
||||
g_player[myconnectindex].ps->gm&MODE_MENU) return -1;
|
||||
|
||||
if (g_sounds[num].m&128)
|
||||
if (g_sounds[num].m&128) // Duke-Tag sound
|
||||
{
|
||||
if ((voice = S_PlaySound(num)) <= FX_Ok)
|
||||
return -1;
|
||||
|
@ -469,7 +469,8 @@ int32_t S_PlaySound3D(int32_t num, int32_t i, const vec3_t *pos)
|
|||
break;
|
||||
}
|
||||
|
||||
if (g_player[screenpeek].ps->sound_pitch) pitch += g_player[screenpeek].ps->sound_pitch;
|
||||
if (g_player[screenpeek].ps->sound_pitch)
|
||||
pitch += g_player[screenpeek].ps->sound_pitch;
|
||||
|
||||
if (g_sounds[num].num > 0 && PN != MUSICANDSFX)
|
||||
S_StopEnvSound(num, i);
|
||||
|
|
Loading…
Reference in a new issue