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!
- pyrokar asked 10 years ago
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)
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?
- pyrokar answered 10 years ago
Please login first to submit.