mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
clean out some old debug code that's confusing me
This commit is contained in:
parent
2149aefe67
commit
fd6a856ae1
1 changed files with 12 additions and 5 deletions
|
@ -330,27 +330,34 @@ static channel_t *
|
|||
s_pick_channel (int entnum, int entchannel, int looped)
|
||||
{
|
||||
channel_t *ch, **_ch;
|
||||
int count;
|
||||
|
||||
// check for finished non-looped sounds
|
||||
for (count = 0, _ch = &dynamic_channels; *_ch; ) {
|
||||
for (_ch = &dynamic_channels; *_ch; ) {
|
||||
if (!(*_ch)->sfx || (*_ch)->done) {
|
||||
SND_ChannelStop (unlink_channel (_ch));
|
||||
continue;
|
||||
}
|
||||
_ch = &(*_ch)->next;
|
||||
}
|
||||
// check for finished looped sounds
|
||||
// normally, this wouldn't happen, but when using the non-threaded mixer
|
||||
// it seems to
|
||||
for (_ch = &looped_dynamic_channels; *_ch; ) {
|
||||
if (!(*_ch)->sfx || (*_ch)->done) {
|
||||
SND_ChannelStop (unlink_channel (_ch));
|
||||
continue;
|
||||
}
|
||||
_ch = &(*_ch)->next;
|
||||
count++;
|
||||
}
|
||||
|
||||
// non-looped sounds are used to stop looped sounds on an ent channel
|
||||
for (count = 0, _ch = &looped_dynamic_channels; *_ch; ) {
|
||||
for (_ch = &looped_dynamic_channels; *_ch; ) {
|
||||
if ((*_ch)->entnum == entnum
|
||||
&& ((*_ch)->entchannel == entchannel || entchannel == -1)) {
|
||||
SND_ChannelStop (unlink_channel (_ch));
|
||||
continue;
|
||||
}
|
||||
_ch = &(*_ch)->next;
|
||||
count++;
|
||||
}
|
||||
_ch = looped ? &looped_dynamic_channels : &dynamic_channels;
|
||||
if ((ch = SND_AllocChannel ())) {
|
||||
|
|
Loading…
Reference in a new issue