CHAN_NOSTOP not working at all

Post bugs that have to do with sound and/or in-game music here.

Moderator: Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

CHAN_NOSTOP not working at all

Postby AtomicLugia » Tue May 01, 2018 2:16 pm

I was working on a replica of the heavy machine gun from Soldier of Fortune for my Zandronum mod (also works on GZDoom) but there's a issue going on with the sound. I want the firing sound to be sequenced exact like in SoF (the shoot sound should be overlapped not be resetted or limited). So I use this:
Code: Select allExpand view
      HVMG C 0 Bright A_PlaySound("HeavyMG/Fire",4096)

It kinda worked on Zandronum but when I use the footsteps mod, it interferes with the shooting sounds. Even without the footstep sounds mod, it sometimes doesn't work. But when I use this in the most recent GZDoom version, it doesn't work at all, even without footsteps. I tried this method:
Code: Select allExpand view
      HVMG C 0 Bright A_PlaySound("HeavyMG/Fire",CHAN_WEAPON|CHAN_NOSTOP)

But this didn't work either. Is this a bug or did I something wrong?

The footsteps mod I mentioned can be found here. (I used the Zandronum version)
The gun can be grabbed here. Just open it with GZDoom, select DOOM or DOOM II, start a level and type "give heavymg" via console.
User avatar
AtomicLugia
A cyan Yoshi with a M249
 
Joined: 06 Oct 2016
Location: Germany

Re: CHAN_NOSTOP not working at all

Postby Blue Shadow » Thu May 03, 2018 3:16 am

I tested the weapon alone with GZDoom 3.3.2. The flag seems to behave as expected: while the firing sound is playing, no other instances of itself (those with CHAN_NOSTOP set) play on that channel, and thus the sound plays fully without being overridden or interrupted by those instances.
User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010

Re: CHAN_NOSTOP not working at all

Postby AtomicLugia » Thu May 03, 2018 10:30 am

Is there a way to bypass it?
User avatar
AtomicLugia
A cyan Yoshi with a M249
 
Joined: 06 Oct 2016
Location: Germany


Return to Audio/Music Bugs

Who is online

Users browsing this forum: No registered users and 1 guest