Raised This Month: $12 Target: $400
 3% 

Multiple wavs playing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HundredEyes
Member
Join Date: Sep 2022
Old 09-30-2022 , 09:06   Multiple wavs playing
Reply With Quote #1

Hi!

I'm using Game Messages & Sounds Manager + Round sound and wavs are overlay. As I see, even if I'm using a different type of plugin for roundsound or if I disable Game Messages & Sounds Manager, the problem still persist.. I don't like this bug when 2 songs and playing simultaneous..

I've searched a little on this forum and I found that if I use mp3 with mp3 it won't happen this thing but with wavs, things are different, they overlay. Is that right?

Any advice how to fix that bug?

Edited.

Last edited by HundredEyes; 10-04-2022 at 19:52. Reason: title was confusing
HundredEyes is offline
HundredEyes
Member
Join Date: Sep 2022
Old 10-03-2022 , 11:38   Re: Multiple wavs playing
Reply With Quote #2

Is there anyone still active? Everyone see, nobody answer xD

I just wanted to know how to avoid sound overlay..
HundredEyes is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 10-03-2022 , 21:45   Re: Multiple wavs playing
Reply With Quote #3

usually you can use stopsound (if you are using spk to play sound) or mp3 stop (if you are using mp3 play) to stop the sound before play the next next one.

PHP Code:
client_cmd(id"mp3 stop; stopsound;"//Use to stop all sound 

client_cmd(id,"stopsound"//Use to stop wav/spk sound

client_cmd(0,"mp3 stop")  //Use to stop mp3 
__________________
My plugin:

Last edited by Celena Luna; 10-03-2022 at 21:47.
Celena Luna is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-03-2022 , 23:58   Re: Multiple wavs playing
Reply With Quote #4

"stopsound" stops way more than just the sound that you played and for that reason I would consider it slowhacking.
__________________
fysiks is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 10-04-2022 , 05:43   Re: Multiple wavs playing
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
"stopsound" stops way more than just the sound that you played and for that reason I would consider it slowhacking.
maybe
but the easiest way to tackle this.
__________________
My plugin:

Last edited by Celena Luna; 10-04-2022 at 05:43.
Celena Luna is offline
HundredEyes
Member
Join Date: Sep 2022
Old 10-04-2022 , 06:55   Re: Multiple wavs playing
Reply With Quote #6

Quote:
Originally Posted by Celena Luna View Post
usually you can use stopsound (if you are using spk to play sound) or mp3 stop (if you are using mp3 play) to stop the sound before play the next next one.

PHP Code:
client_cmd(id"mp3 stop; stopsound;"//Use to stop all sound 

client_cmd(id,"stopsound"//Use to stop wav/spk sound

client_cmd(0,"mp3 stop")  //Use to stop mp3 
Thank you mate! That's all I wanted <3

Last edited by HundredEyes; 10-04-2022 at 07:01.
HundredEyes is offline
HundredEyes
Member
Join Date: Sep 2022
Old 10-04-2022 , 19:52   Re: Multiple wavs playing
Reply With Quote #7

Added this:

Code:
#include amxmodx

public plugin_init() {
    register_logevent("logevent_round_end", 2, "1=Round_End")  
}

public logevent_round_end()
{
    client_cmd(0, "mp3 stop; stopsound;")
}
There is no overlay but I can't hear music from round sound plugin.. I tried 3 types of roundsound plugins, none of them works anymore with stopsound.

Celena Luna, it's because roundsound doesn't use spk? As you said before: usually you can use stopsound (if you are using spk to play sound)

Also I didn't try to use mp3 for round sound, only wavs

Last edited by HundredEyes; 10-04-2022 at 20:46.
HundredEyes is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 10-04-2022 , 20:53   Re: Multiple wavs playing
Reply With Quote #8

it is an band-aid fix after all.
If you want to actually fix the problem, you should change the plugins itself.
I know Game Messages & Sounds Manager but what is the other one?

P/S: Something worth to try out
Spoiler
__________________
My plugin:

Last edited by Celena Luna; 10-04-2022 at 20:53.
Celena Luna is offline
HundredEyes
Member
Join Date: Sep 2022
Old 10-05-2022 , 04:59   Re: Multiple wavs playing
Reply With Quote #9

This one: https://forums.alliedmods.net/showthread.php?p=499872

I've tried this before but still nothing:
Code:
crx_winmessages.amxx
stopsound.amxx
alt_end_round_sounds(beta).amxx
Even if I'm using only Game Messages & Sounds Manager, I can't hear ct/t win sounds.
I mean I tried to keep only this plugin and use this way:
Code:
%!MRAD_terwin "example.wav"
%!MRAD_ctwin "example.wav"
CT/T win sound works only without stopsound..

Last edited by HundredEyes; 10-05-2022 at 06:45.
HundredEyes is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 10-06-2022 , 21:24   Re: Multiple wavs playing
Reply With Quote #10

you could go to alt_end_round_sounds(beta) and stopsound before playing the sound in the plugins.
Also, why do you need both 2 sound anyway?
__________________
My plugin:
Celena Luna is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode