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

Solved Donno why sound is looping


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 12-29-2017 , 00:39   Donno why sound is looping
Reply With Quote #1

hi can any1 tell me why the following plays a looping sound?

PHP Code:
public OnPluginStart()
{
    
RegConsoleCmd("sm_test"test);
}

public 
OnMapStart()
{
    
PrecacheSound("items/medcharge4.wav",  true);
}

public 
Action:test(clientargs)
{
    
EmitSoundToClient(client"items/medcharge4.wav");

game is csgo
__________________

Last edited by 8guawong; 12-30-2017 at 13:36.
8guawong is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 12-29-2017 , 12:34   Re: Donno why sound is looping
Reply With Quote #2

Maybe add a return Plugin_Handled? I really don't know either, but that's what I noticed missing in your code. :/
__________________
Psyk0tik is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 12-29-2017 , 13:45   Re: Donno why sound is looping
Reply With Quote #3

Quote:
Originally Posted by Crasher_3637 View Post
Maybe add a return Plugin_Handled? I really don't know either, but that's what I noticed missing in your code. :/
nope thats not it
i tried other sound and it does not loop like this one
__________________
8guawong is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 12-29-2017 , 20:17   Re: Donno why sound is looping
Reply With Quote #4

That file seems to have some cue points in it?
https://developer.valvesoftware.com/...ooping_a_Sound
__________________
Peace-Maker is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 12-29-2017 , 20:51   Re: Donno why sound is looping
Reply With Quote #5

Quote:
Originally Posted by Peace-Maker View Post
That file seems to have some cue points in it?
https://developer.valvesoftware.com/...ooping_a_Sound
no wonder thx!
anyway to remove the cue?
__________________
8guawong is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 12-30-2017 , 11:36   Re: Donno why sound is looping
Reply With Quote #6

Quote:
Originally Posted by 8guawong View Post
no wonder thx!
anyway to remove the cue?
The program from the wiki has a "Delete All" button, so probably you can open the file with that program and delete all the cue points?

New sound file would obviously need to have another name, as you cannot overwrite previously downloaded files (fastdl / downloadurl, etc.).
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 12-30-2017 , 13:36   Re: Donno why sound is looping
Reply With Quote #7

Quote:
Originally Posted by arne1288 View Post
The program from the wiki has a "Delete All" button, so probably you can open the file with that program and delete all the cue points?

New sound file would obviously need to have another name, as you cannot overwrite previously downloaded files (fastdl / downloadurl, etc.).
ah ok

thx
__________________
8guawong is offline
Reply



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 11:15.


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