How sound works?

Get help using Construct 2

Post » Sun Nov 06, 2016 12:40 am

I know I am able to preload sound. I assume it goes into the RAM.

After the sound is played does it automatically get removed from the RAM or does it slowly go away due to other things being put into the RAM?


This question brings up other questions, these may be answered with the first question.

If it is a common played sound is there a way to keep the sound in the RAM?

If it is a very rare played sound do I need to ( or can I) remove it from RAM?

How long does the preloaded sound stay in RAM if I preload it and don't use it right away?


I am only assuming it goes into RAM.
B
65
S
37
G
13
Posts: 240
Reputation: 12,703

Post » Sun Nov 06, 2016 2:28 pm

Sounds are not released from memory once preloaded or played, they stay in memory so that they can be played again without delays. So 'can a common played sound be kept in RAM?', yes it is automatically. 'If it is a rare played sound can I remove it from RAM?', nope. 'How long does the reloaded sound stay in RAM?', for the rest of the game.
B
46
S
16
G
78
Posts: 2,166
Reputation: 46,349

Post » Wed Nov 23, 2016 4:04 am

Is there no need to free up RAM?
B
65
S
37
G
13
Posts: 240
Reputation: 12,703

Post » Wed Nov 23, 2016 9:51 am

C2 handles the RAM usage part as the engine.
All you need to do is be smart on the memory usage of your game and stay within reasonable boundaries.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
292
S
115
G
96
Posts: 7,293
Reputation: 70,781

Post » Wed Nov 23, 2016 10:46 am

Thanks for the link. It was useful.

When I first started the Manual was confusing to me. The problem I had was I didn't know some of the lingo used or I knew some of it, but didn't realize it applied to C2. Now that I have been using C2 for a while I can understand a lot of the manual.

This engine always amazes me.

You must get tired of posting links to the manual. :?
B
65
S
37
G
13
Posts: 240
Reputation: 12,703


Return to How do I....?

Who is online

Users browsing this forum: beohs and 12 guests