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

Play Sound - spk vs emit_sound


Post New Thread Reply   
 
Thread Tools Display Modes
metal_upa
Senior Member
Join Date: Jun 2016
Old 02-27-2023 , 01:45   Re: Play Sound - spk vs emit_sound
Reply With Quote #11

Spoiler


Try this, if it work, then something is wrong with your code.
metal_upa is offline
asdian
Member
Join Date: Sep 2016
Location: Indonesia
Old 03-23-2023 , 23:57   Re: Play Sound - spk vs emit_sound
Reply With Quote #12

Quote:
Originally Posted by metal_upa View Post
Spoiler


Try this, if it work, then something is wrong with your code.
thank you. i will test it.
asdian is offline
asdian
Member
Join Date: Sep 2016
Location: Indonesia
Old 04-11-2023 , 10:07   Re: Play Sound - spk vs emit_sound
Reply With Quote #13

Quote:
Originally Posted by metal_upa View Post
Spoiler


Try this, if it work, then something is wrong with your code.
it gave this error :

HTML Code:
Warning:  Unable to open vox/sc/buffclass22s4ct/character/lose1.wav for transfer
Warning:  Unable to open vox/sc/buffclass22s4ct/character/lose2.wav for transfer
Warning:  Unable to open vox/sc/buffclass22s4ct/character/win1.wav for transfer
Warning:  Unable to open vox/sc/buffclass22s4ct/character/win2.wav for transfer
Warning:  Unable to open vox/sc/buffclass22s4ct/character/revengekill1.wav for transfer
Warning:  Unable to open vox/sc/buffclass22s4ct/character/revengekill2.wav for tran
of course the files are there, i have checked it
asdian is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 04-11-2023 , 12:00   Re: Play Sound - spk vs emit_sound
Reply With Quote #14

Quote:
Originally Posted by Arkshine View Post
mp3 -> precache_generic() -> "mp3 play" -> need to add "sound/" before in the path.
wav -> precache_sound() -> "spk"
check your sound path if is valve or cstrike

Quote:
Originally Posted by mlibre
for the sound to sound you have to convert it to 8 bit, Channels: 1 (mono) and Speed ​​22 KHz
use the program Illustrate dBpoweramp for that
__________________

Last edited by mlibre; 04-11-2023 at 12:32. Reason: add quote
mlibre is offline
asdian
Member
Join Date: Sep 2016
Location: Indonesia
Old 04-12-2023 , 01:06   Re: Play Sound - spk vs emit_sound
Reply With Quote #15

Quote:
Originally Posted by mlibre View Post
check your sound path if is valve or cstrike
can you give more detail ?

from what i know amxx will always check path at cstrike, because of using amxmodx cstrike variant not half-life
asdian is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 04-12-2023 , 10:24   Re: Play Sound - spk vs emit_sound
Reply With Quote #16

the root path of the file... example "cstrike\sound\misc\cow.wav" In this directory, the "vox" folder does not exist, that's why I doubt where you are loading the sounds, I could have conflicts, diference of "valve\sound\vox\activated.wav" brings it by default

Quote:
Originally Posted by asdian View Post
Code:
sound\vox\sc\buffclass22s4ct\character\win1.wav
another detail that may be causing you problems is the fastdl, check these commands in "server.cfg"

PHP Code:
sv_downloadurl "http://<your web site>/cstrike"
sv_allowdownload 1
sv_allowupload 1 
If the problem persists, please enable this "developer 1" command on your game console to get more details when connecting to the server
__________________
mlibre is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-12-2023 , 18:22   Re: Play Sound - spk vs emit_sound
Reply With Quote #17

IIRC, the valve folder is searched for all resource files requested by the game/plugins (including sounds) but it has the lowest precedence compared to the mod (cstrike/dod/czero/etc.) folder.
__________________
fysiks is offline
asdian
Member
Join Date: Sep 2016
Location: Indonesia
Old 04-13-2023 , 23:38   Re: Play Sound - spk vs emit_sound
Reply With Quote #18

Quote:
Originally Posted by fysiks View Post
IIRC, the valve folder is searched for all resource files requested by the game/plugins (including sounds) but it has the lowest precedence compared to the mod (cstrike/dod/czero/etc.) folder.
as fysiks says, i also have tried "spk ohno.wav" and it does works, without folder structure.

i guess i have no choice but to use emit_sound
asdian 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 19:05.


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