Custom Sound Files (Both WAV/MP3) are failing to play
6 replies, posted
I've created some custom WAV/MP3 files to play when a player activates them in a SWEP. It's really just an edit of the Angry Hobo SWEP.
[B][WARNING] The sounds on the files are loud and may be slightly NSFW[/B]
[URL="evilmelonfastdl.site.nfoservers.com/sound/weapons/hobo/hoboswep1.wav"]Here's a .WAV file[/URL] that comes with the Angry Hobo SWEP. It works fine.
[URL="evilmelonfastdl.site.nfoservers.com/sound/weapons/hobo/hoboswep25.wav"]Here's a .WAV file[/URL] I've encoded @ 44100Hz. It does not work in the swep, nor when using the command [B]ulx playsound weapons/hobo/hoboswep25.wav[/B]
The error this creates in my console is [B][LC ULib ERROR] Received invalid sound[/B]
Here's the previous .WAV [URL="evilmelonfastdl.site.nfoservers.com/sound/weapons/hobo/hoboswep25.mp3"]encoded into a MP3[/URL] @ 44100Hz. It doesn't work in the swep, nor when played with ulx playsound weapons/hobo/hoboswep25.mp3[/B]
It also gives the error [B][LC ULib ERROR] Received invalid sound[/B]
Just out of curiosity I encoded one of the working .WAV files into a .MP3 @ 44100Hz and tried to play it, and it became unusable in both the swep and when using the command [B]ulx playsound weapons/hobo/hoboswep1.mp3[/B]
It throws the error [B][LC ULib ERROR] Received invalid sound[/B]
Here's a picture of my folder structure
[url]http://i.imgur.com/gSsO4PC.png[/url]
Here's a picture of the folder structure on my FastDL
[url]http://i.imgur.com/Y0XtWsE.png[/url]
Audio recording was done on Teamspeak @ 48000Hz then converted to 44100Hz on audacity.
It's weapons/hobo/hoboswep25.wav not weapons\hobo\hoboswep25.wav
[QUOTE=JasonMan34;48235745]It's weapons/hobo/hoboswep25.wav not weapons\hobo\hoboswep25.wav[/QUOTE]
Apologies, I formatted this thread wrong.
In the script it's [I]weapons/hobo/hoboswep#.wav[/I] / [I]weapons/hobo/hoboswep#.mp3[/I]
[QUOTE=Qazwwx;48235791]Apologies, I formatted this thread wrong.
In the script it's [I]weapons/hobo/hoboswep#.wav[/I] / [I]weapons/hobo/hoboswep#.mp3[/I][/QUOTE]
It has to be a 16-bit stereo (Use audacity)
[QUOTE=JasonMan34;48237435]It has to be a 16-bit stereo (Use audacity)[/QUOTE]
Here's how my Audacity settings and exporting is setup. It still won't play in the swep, or with the command.
[url]https://imgrush.com/-9ga5UA3oeu1[/url]
Project Rate: 44100
sample format: 32-bit float
mono
those are my settings for mp3's and they work all the time.
[QUOTE=Nick78111;48239376]Project Rate: 44100
sample format: 32-bit float
mono
those are my settings for mp3's and they work all the time.[/QUOTE]
Those settings are now working, thank you!
Sorry, you need to Log In to post a reply to this thread.