Adding Roundsounds on CSS Server, invalid sample rate?
Hey, i wanna add some Sounds on my Linux CSS Server, installed with SteamCMD.
Now i wanna use this sounds, as endsounds, but get failure...

"MP3 initialized with no sound cache, this may cause janking. []
Failed to create decoder for MP3 []
MP3 initialized with no sound cache, this may cause janking. []
Failed to create decoder for MP3 []
*** Invalid sample rate (0) for sound 'slayer\mvp\serhat durmus - la calin (callmearco remix).mp3'."


I tryed with samplerate 256 and 64.
But still get this error.

Can someone help me?
< >
Showing 1-14 of 14 comments
it either cant find the mp3 files or they are in a diff sample rate format. to make mp3 / wavs compatible i use ffmpeg and set the output to what the source engine wants, 44100. I use this windows dos bat file to convert the sounds for sound triggers in hl2dm:

@echo off rem drop to convert files from any to 44100 hz audio mp3 ? with lame encoder FOR %%G IN (%*) DO ( "C:\Program Files\tools\ffmpeg\ffmpeg-master-latest-win64-gpl\bin\ffmpeg.exe" -i %%G -codec:a libmp3lame -qscale:a 2 -ar 44100 "%%~nG".converted.mp3 IF %ERRORLEVEL% NEQ 0 echo: & echo An error was found, errorlevel is %ERRORLEVEL% & echo: & pause ) @echo on

Make a bat file and drop mp3, wavs, almost anything onto it to produce a compatible mp3 for use in source. NOTICE you will have to edit the path to your ffmpeg installation, the file will appear in the same folder as the original, we change the name to prevent overwrite with "converted" near the end. Change the mp3 name to anything you like but simple is better with no spaces.

Otherwise its a samplerate of 44100 or below i beleive.
Last edited by +ORCON+ Veritas [SS]; 16 Mar @ 4:48am
I tryed now with 44,1 khz/44.100 hz as sample rate, but still no sound.
Since hourers i try to get my sounds...

I am new to this all, so that is my first server on CSS.
can you play the sound manually? like: "play quake\godlike.mp3" in client console.
try this in dev console on your client:

play "slayer\mvp\serhat durmus - la calin (callmearco remix).mp3"

could be the parans too (), what sourcemod plugin are you using the play the sounds?
i use actualy version of sourcemod (1.11.0) and metamod. Dirextly from there homepage.

i get this error, if i try it:

Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Last edited by KNACKOTTER; 16 Mar @ 7:28am
Can you play any sound with the play command. sounds must be in the "sound" folder:

Counter-Strike Source\cstrike\sound\ ...<here on the server>
-or-
Counter-Strike Source\cstrike\download\sound\ ...<automatically downloads here for clients>
-or-
Counter-Strike Source\cstrike\custom\custom_stuff_here\sound\ ...<and here on the server>

To get custom sounds working on my Source Dedicated for hl2dm i had to have them in both the first and the last folders and run this plugin to handle the downloads and triggers:
https://forums.alliedmods.net/showthread.php?p=729788

On the fastdl server just /sound/ in the root . If the web addy is:
sv_downloadurl "http://redacted use your own.com/server"
then they go in server/sound/, but it depends on how you have your web server setup as to which folder.

here is my output:
] play ah.mp3 697.923551 BlockingGetDataPointer: Async I/O Force ah.mp3 ( 0.12 msec / 0.12 msec total ) ] play ah.mp3 ] play ah.mp3

the sound will throw an error the first time it is played, just to show you it made a tiny bit of lag rendering the sound.

i hope this helps
I think, that is to hard for me to understand, because i speak english not well.
Installed now this plugin, in your link.

But all other´s, i dont understand it.

You asked me, if i can play any sound with sound command.
But in my soundfolder i just have the sounds of this plugin "[CSS/CSGO/ANY?] SLAYER Custom MVP Anthem (v1.5"

i can not play any sounds, everytime i get:

Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []

And when i add another sound like "kill1.mp3" and i do play than comes error:
MP3 initialized with no sound cache, this may cause janking. []
MP3 initialized with no sound cache, this may cause janking. []
Failed to create decoder for MP3 []
Failed to create decoder for MP3 []
*** Invalid sample rate (0) for sound 'kill1.mp3'.


And i try this saysound plugin.
I write in .cfg my sound name "ctwinnar2.wav" as join sound.
This dont work too...

if you wanna test, if you hear my sounds, you can join server: 178.63.12.252:27016
Last edited by KNACKOTTER; 16 Mar @ 3:37pm
You have filled your server full of bots I cant get in to check.
I will check back later....
Sry, that was my bad.
Now can join. :)
So, downloads and triggers ARE working correctly just source engine doesnt like spaces or symbols in the file names. here is a file garunteed to work, download it , put it in "sound" and see if it plays (it played for me):
http://seniorslayers.site.nfoservers.com/server/sound/seniorslayed/vert.mp3

I put the sound in "cstrike\sound\slayer\mvp\vert.mp3" and played it with this command:
play slayer\mvp\vert.mp3

NOTE I was NOT connected to a server at the time it worked.

I played a few of your sounds successfully with simplified names (i took out the "spaces" and "-" and "&").

renaming em all IS going to be a hassle but theres only 24,
test a few before renaming them all.
Yes, if I do it locally on the PC in my sound folder, then I can play it.

But when I create the file in sound on the Linux server where the CSS server is running, it doesn't play it and the error occurs again.

I need the sound on the server so that all players can hear the round music.

I just don't understand why it doesn't work...

I changed all sounds to simple names (like: Lied1, Lied2...) but still get this error:

MP3 initialized with no sound cache, this may cause janking. []
Failed to create decoder for MP3 []
MP3 initialized with no sound cache, this may cause janking. []
Failed to create decoder for MP3 []
*** Invalid sample rate (0) for sound 'slayer\mvp\lied9.mp3'.
Last edited by KNACKOTTER; 17 Mar @ 2:36am
"locally on the PC in my sound folder" with another application like VLC? I ment I did it in the game but not connected to a server yet. Also did you put the mp3's in both places?,
"cstrike\sound\" AND "cstrike\custom\custom_content\sound\" . Im not confident you have the folder structure right. Yes the server needs the sound but its not that file that plays on the client, the clients play the sounds server, only tells client to when to play it (and where to download it.) So we have to get the clients playing the sounds first hence the play command, youve got the server plugins right, just the clients arent finding the mp3 files. I think. If you want to continue this feel free to add me to steam freinds and I can show you working examples of saysounds in css and hl2dm. Don't worry we had to figure all this out when valve switched from gcf to vpk virtual file systems, its a mess..
Last edited by +ORCON+ Veritas [SS]; 17 Mar @ 3:40am
Yes, i put them in both. Still not working, I send you a friend request.

I just seem to miss the logic behind it so I don't understand it.

It's also my first server.
Last edited by KNACKOTTER; 17 Mar @ 4:49am
[N]ebsun 17 Mar @ 2:37pm 
Try with one of the default sound files that already exist in the game - it seems like you are trying to play the sound without first having players download it from the server?
KNACKOTTER 18 Mar @ 12:55pm 
The players can download the soundfiles all. But cant hear anything.
< >
Showing 1-14 of 14 comments
Per page: 1530 50