Page 1 of 1

Using custom sounds in CS:GO

Posted: Tue Aug 09, 2016 1:05 pm
by decompile
Hey Guys,

Im currently trying to make my CS:S plugin work with CS:GO.

On CS:S im using sounds which are from hl2 eg. bot or ambient sounds. Sadly I found out that 2 are not in cs:go so I copied them from the vpk's and put them into the csgo/sound/ dic. and when I try to play them easily via Sound("sound_name.mp3").play(index) it gives me a red console error "Failed to create sound, cant create mixer".

Re: Using custom sounds in CS:GO

Posted: Tue Aug 09, 2016 6:46 pm
by iPlayer
Try using StreamSound class.

Re: Using custom sounds in CS:GO

Posted: Tue Aug 09, 2016 6:49 pm
by kalle
Sadly I had the same problems. I just figured out that .wav files are bad for csgo. But you're using .mp3 files. Do they have some different codec options? You can have a look at that with vlc or other players.

I recently had luck and could play every .mp3 file I've found with this source code: https://github.com/Kandru/conquest-go/b ... /sounds.py

I just remembered that I sometimes had to restart the csgo server and the client to get .mp3 files working. Don't know why but maybe it's a problem relating to csgo? Did you have tried to restart both server and client?

Also what mp3 files make problems at all? Can you upload them?

Re: Using custom sounds in CS:GO

Posted: Tue Aug 16, 2016 12:02 am
by decompile
Sorry for not responding, but StreamSound fixed the issue. Thanks