Raised This Month: $32 Target: $400
 8% 

[TF2] Custom sound file not playing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lambofgod
Member
Join Date: Jul 2013
Old 06-25-2017 , 15:35   [TF2] Custom sound file not playing
Reply With Quote #1

I have added a few custom sounds to play to all players of the server but it does not seem to be working.

The sound files download for players and myself but are not heard despite the commands used.

I have used
emitsound
play @all soundfile.mp3
playvol soundLocation 1.0 and still nothing is working
lambofgod is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 06-25-2017 , 23:46   Re: [TF2] Custom sound file not playing
Reply With Quote #2

If your sound located into tf2/sound/misc/blab.mp3 you muat play it like this:
sm_play @all "*/misc/blah.mp3"
__________________

Last edited by ambn; 06-25-2017 at 23:46.
ambn is offline
lambofgod
Member
Join Date: Jul 2013
Old 06-27-2017 , 02:30   Re: [TF2] Custom sound file not playing
Reply With Quote #3

Quote:
Originally Posted by ambn View Post
If your sound located into tf2/sound/misc/blab.mp3 you muat play it like this:
sm_play @all "*/misc/blah.mp3"
Its located in tf2/sound/file.mp3

I do sm_play @all file.mp3 and it says file played to all players, but nothing is heard

This is my console output

MP3 initialized with no sound cache, this may cause janking. [ file.mp3 ]
Failed to create decoder for MP3 [ file.mp3 ]
MP3 initialized with no sound cache, this may cause janking. [ file.mp3 ]
Failed to create decoder for MP3 [ file.mp3 ]
*** Invalid sample rate (0) for sound 'file.mp3'.

Last edited by lambofgod; 06-27-2017 at 02:32.
lambofgod is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 06-27-2017 , 12:53   Re: [TF2] Custom sound file not playing
Reply With Quote #4

Maybe your mp3 file is broken?
__________________
ambn is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 06-27-2017 , 23:08   Re: [TF2] Custom sound file not playing
Reply With Quote #5

Download: https://www.goldwave.com/

Open it. Drag your file into the program. Click on File then Save As, type .mp3 and attributes Layer-3 44100 Hz, 192 kbps, stereo.

Rename your sound file and reupload to server.

https://forums.alliedmods.net/showthread.php?p=602270

^Use this to download and precache the file.
__________________

Last edited by Fearts; 06-27-2017 at 23:10.
Fearts 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 00:53.


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