0
0

Hello,

I have this source:

[code:2ll9jtkf]result = system->createSound("../media/drumloop.wav", FMOD_SOFTWARE, 0, &sound1);

result = system->createSound("../media/drumloop.wav", FMOD_SOFTWARE, 0, &sound2);[/code:2ll9jtkf]

Now, as far as I know the .wav file will somehow be loaded into memory for playback.

But will the wave be allocated once or twice in memory?

In other words, is there any kind of resource management which takes care of the raw data usage?

Thank you very much!

  • You must to post comments
0
0

It will be loaded twice into memory. There is really no point in doing this. You can load a sound once, and play it as many times as you want.

(Unless it is a stream, in which case you do need to load as many instances as you want to play)

  • You must to post comments
0
0

Hi,

thanks for the answer.

I already know, that a sound can be played as many times as I want.

The reason, why I asked was antoher one.

I load soundfiles from a scheme and it can happen, that there are the same soundfiles in different schemes. It would be silly, to load the sound twice 😉

So, I have to write a "filter" or can fmod do such things out of the box?

  • You must to post comments
0
0

okay, in that case you’ll have to write some sort of filter

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.