View Issue Details

IDProjectCategoryView StatusLast Update
0009169New Feature RequestsGeneralpublic2017-06-18 20:56
ReporterZ_ReC Assigned To 
Status newResolutionopen 
Summary0009169: [Request] Replace playSound() by createSound()

I have an idea:

Sound elements are not very easy to handle (particularly with short sounds), are easily destroyed when finished.

The best thing would change playSound by createSound, not auto play and return sound element.

Also it is not destroyed when it finishes!

Something like that:

createSound([bool autoPlay = false, bool loop = false, volume = 1.0] )
(also something similar with playSound3d)

Thanks for your time!

Additional Information

soundElement:play() :P

TagsNo tags attached.



2016-02-27 07:57

viewer   ~~0024476

Last edited: 2016-02-27 07:59

View 2 revisions

I want to correct:

createSound(string soundPath, [bool autoPlay = false, bool loop = false, float volume = 1.0] )


2016-02-27 11:01

viewer   ~~0024477

Why are short sounds difficult to handle? There are plenty of sound events you can use to manage almost everything you would need.


2016-02-28 07:13

viewer   ~~0024489

It could save a lot of code with this small change!

Issue History

Date Modified Username Field Change