Playsound problem with an actor
Playsound problem with an actor
Hi, does anyone know why this isnt working? I want it to play MRMXPL when it activates, which is an explosion sound. However, it doesnt.
ACTOR StiffExplosion2 20040
{
//$Category Stijfjes Stuff
States
{
Spawn:
EXP2 A 0 A_PlaySound("MRMXPL")
EXP2 ABCDEFGHIJKLMN 2
Stop
}
}
ACTOR StiffExplosion2 20040
{
//$Category Stijfjes Stuff
States
{
Spawn:
EXP2 A 0 A_PlaySound("MRMXPL")
EXP2 ABCDEFGHIJKLMN 2
Stop
}
}
RE: Playsound problem with an actor
It most likely needs to be defined in SNDINFO.
Watermelon wrote: Stall is notorious for his D.
For the best song you'll ever hear, click this linkLollipop wrote: What does ETA mean? I'm sorry, but I don't get too much around on the internet.
I DARE YOU
RE: Playsound problem with an actor
You also can't execute an action in the first frame of an actor's Spawn state ...
Try this instead:
Try this instead:
Code: Select all
ACTOR StiffExplosion2 20040
{
//$Category Stijfjes Stuff
States
{
Spawn:
EXP2 A 0 // you can't do actions here, you have to wait until the second frame
EXP2 A 0 A_PlaySound("MRMXPL")
EXP2 ABCDEFGHIJKLMN 2
Stop
}
}
Last edited by Ænima on Sun Nov 03, 2013 9:59 pm, edited 1 time in total.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)

Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)

RE: Playsound problem with an actor
Or you can put an extra A to that line, meaning
This will also work in case you want to make it take less lines :p
Code: Select all
EXP2 AA 0 A_PlaySound("MRMXPL")
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
- -Jes-
- Frequent Poster Miles card holder
- Posts: 975
- Joined: Fri Aug 03, 2012 9:55 am
- Location: Void Zone
RE: Playsound problem with an actor
The first frame in an actor's spawn state can indeed not perform any actions.
In fact, ZDoom just recently introduced an actor flag to remove this behavior.
In fact, ZDoom just recently introduced an actor flag to remove this behavior.
RE: Playsound problem with an actor
Ah, explains. Yeah, i has it in SNDINFO, ill try it when i get to a proper pc. Thanks for the help.
RE: Playsound problem with an actor
i tried with the double A and it works! But its not very loud, can this be increased?
RE: Playsound problem with an actor
Yeah, open the sound with Audacity and amplify it.Mr.Man wrote: i tried with the double A and it works! But its not very loud, can this be increased?
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)

Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)

RE: Playsound problem with an actor
No, there's an even better solution. Put more A there and in the sound definition at SNDINFO do this:Ænima wrote:Yeah, open the sound with Audacity and amplify it.Mr.Man wrote: i tried with the double A and it works! But its not very loud, can this be increased?
Code: Select all
$limit Soundname 0
Last edited by Ivan on Tue Nov 05, 2013 4:10 pm, edited 1 time in total.
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
-
Ijon Tichy
- Frequent Poster Miles card holder
- Posts: 901
- Joined: Mon Jun 04, 2012 5:07 am
RE: Playsound problem with an actor
That is not a better solution. Playing the same sound on multiple channels clogs up those channels (they're shared across the entire player actor), as well as the global sound channels (64 or so by default), and since only one sound can be played per channel, you're basically silencing other sounds because you couldn't be bothered to go into Audacity and use an Amplify function. By default, it makes the sound as loud as possible without clipping, so it's literally just three clicks once you have the sound open.
If you're using automatic, really rapid firing weapons, switching between three or four audio channels for each shot might make the weapon sound better, but that's something else. Even then, use only as many sound channels as you need to make it sound good.
If you're using automatic, really rapid firing weapons, switching between three or four audio channels for each shot might make the weapon sound better, but that's something else. Even then, use only as many sound channels as you need to make it sound good.
Last edited by Ijon Tichy on Tue Nov 05, 2013 4:22 pm, edited 1 time in total.
RE: Playsound problem with an actor
But it's an external actor, so it shouldn't affect the player in any way.Ijon Tichy wrote: That is not a better solution. Playing the same sound on multiple channels clogs up those channels (they're shared across the entire player actor), as well as the global sound channels (64 or so by default). Amplifying it really isn't that big of a deal, and it means less stupid code bloat.
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
-
Ijon Tichy
- Frequent Poster Miles card holder
- Posts: 901
- Joined: Mon Jun 04, 2012 5:07 am
RE: Playsound problem with an actor
Doesn't change the fact that it's still clogging up sound channels, as well as being a really nasty hack.
The only reason I'd use this hack is because it seems to bypass clipping to some extent, but even then, I'd use it only sparingly.
The only reason I'd use this hack is because it seems to bypass clipping to some extent, but even then, I'd use it only sparingly.
Last edited by Ijon Tichy on Tue Nov 05, 2013 4:26 pm, edited 1 time in total.
RE: Playsound problem with an actor
Yes, that is exactly why I suggested it, no clipping. It does what many of the sound editing tools fail to do, Audacity included. Often times, no matter how loud I tried to make an effect, or a weapon firing sound, it would not work. I used this and voila, perfect. IMO it can be very useful if done right.Ijon Tichy wrote: Doesn't change the fact that it's still clogging up sound channels, as well as being a really nasty hack.
The only reason I'd use this hack is because it seems to bypass clipping to some extent, but even then, I'd use it only sparingly.
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
RE: Playsound problem with an actor
About playsound, I noticed that compressed formats are much quietter than the wave format, while using completely same, normalized sound.
The similar applies to stereo sounds.
The similar applies to stereo sounds.
𝕂𝕝𝕠𝕗𝕜𝕒𝕔
RE: Playsound problem with an actor
Yeah I noticed this a long while ago too, but I thought it was just me... There certainly is something weird with how Zandronum handles those.Klofkac wrote: About playsound, I noticed that compressed formats are much quietter than the wave format, while using completely same, normalized sound.
The similar applies to stereo sounds.
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
RE: Playsound problem with an actor
I have never noticed this. Infact I have recently batch-converted all of SST's sounds (which were all WAVs) to OGG's and everything sounds just as loud as it used to (and no it's not just relative, sometimes I play with headphones on at 100% volume and everything sounds just as loud as before the conversion).Ivan wrote:Yeah I noticed this a long while ago too, but I thought it was just me... There certainly is something weird with how Zandronum handles those.Klofkac wrote: About playsound, I noticed that compressed formats are much quietter than the wave format, while using completely same, normalized sound.
The similar applies to stereo sounds.
It may be related to your guys' sound drivers or even OS (not sure if Linux Zandro handles sound file decompression differently than Windows).
The only thing i've noticed in relation to compressed sound formats in Zandro is that with long clips (mostly just music) can lag for a second before the sound plays for the first time due the sound needing to be decompressed as it's loaded. This is most noticeable when a map/server changes the music to an MP3 in the middle of a map. If it were a WAV, there would be hardly any pause. (But the filesize would be ridiculous ... a 3-minute song in WAV format alone is like 30 fucking megabytes...)
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)

Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
