[User error] Infinitely Looping Sound

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Infinitely Looping Sound

Postby SPZ1 » Fri Jul 05, 2019 7:28 pm

This is what the title says it is. Just shoot the IceyStaff once and it will never stop! I tried every option that I could find including converting to MP3, trying SNDINFO options like $limit, and DECORATE options like A_StopSound.. :?

Here is a link to a test file, sorry but this forum will not allow this file because it is too big :

https://1drv.ms/u/s!Ap4KZFMds2L1hC5RPadGDnIXPygC?e=zNKBBE
User avatar
SPZ1
 
Joined: 02 Aug 2017
Location: Illinois

Re: Infinitely Looping Sound

Postby Blue Shadow » Fri Jul 05, 2019 9:06 pm

Line 39:

Code: Select allExpand view
ICEY B 1 A_PlaySound("weapons/IceyStaff/Shoot", 305, 0.8, FALSE, ATTN_NORM, FALSE

The second parameter of A_PlaySound is the channel; 305 implies the CHAN_LOOP flag, it looks like, among others.
User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Infinitely Looping Sound

Postby Graf Zahl » Sat Jul 06, 2019 2:14 am

A clear case of "Do not use literal values for flag parameters!"
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 4 guests