Custom Sound CEF 1.0.0

   (1 review)
Sign in to follow this  

About This File

Simple CEF to play custom mp3's in the background. The CEF autodestroys after the sound has finished to not use our beloved PC resources.

 

Copy client_packages and packages content in their respective directory, then import them.

You can put your mp3's inside client_packages/Sound/sounds/ and trigger them with their filename. Only mp3 is supported right now, although ogg works as well, it's easily exchangeable and/or extensible to allow for both.

As of right now, you can play a sound with the "/playsound NAME" command. You can use this as you want, this is only a barebones example to show how it works.

I have not experimented when it comes to max sound length / filesize. I'd like to know though :D

  • Like 2



User Feedback

Recommended Comments

I wouldn't destroy the CEF after a sound has been played, because the library you use (Howler) caches the played sounds and it would be better to load frequently used sounds only once.

Share this comment


Link to comment
Share on other sites
vor 13 Stunden schrieb araynimax:

I wouldn't destroy the CEF after a sound has been played, because the library you use (Howler) caches the played sounds and it would be better to load frequently used sounds only once.

That's a good shout. I've decided to destroy them to not clog up memory/CPU power as it is Chromium in the end. I'll have a look for a middle ground :D

Share this comment


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now