0
0

Hi,

In the Designer tool, there is a Wave Banks proerty that is Bank Type. We can select from one of the three type. But, if I call loadEventData(), does this property actually still matter? If it’s set to "stream from disk", when I call loadEventData, it will still load the data (of that group) into memory… Am I correct?

After a few try I found that when I use "stream from disk", FMOD will use more memory than "load into memory". (almost double in my case) Any idea?

Thank you~

  • You must to post comments
0
0

[quote="karl":yctymyqt]Hi,

In the Designer tool, there is a Wave Banks proerty that is Bank Type. We can select from one of the three type. But, if I call loadEventData(), does this property actually still matter? If it’s set to "stream from disk", when I call loadEventData, it will still load the data (of that group) into memory… Am I correct?

After a few try I found that when I use "stream from disk", FMOD will use more memory than "load into memory". (almost double in my case) Any idea?

Thank you~[/quote:yctymyqt]

This one is never answered.. now I have more questions. When I use loadEventData(), and in the designer project I use "load into memory" for PS2, does the sound data get loaded into SPU2 ram automatically? Or, they will stay in the memory block that I assign to Fmod with Memory_Initialize(), which is normal EE ram and only 32mb?

Maybe I shouldn’t use loadEventData() when the bank is set to "stream from disk"?

  • You must to post comments
0
0

loadEventData for ‘stream from disk’ does do someting, and no, it doesnt load it into memory.

What it does is open the stream, and prime it so that it can be played. That’s not the same as ‘load into memory’ which will load the whole bank into memory (actually just the sounds that are used in the events under that eventgroup).

When you select VAG, load into memory banks go straight to SRAM and don’t touch EE ram (well there is a small 32kb transfer buffer or something) so you have to be careful you dont exceed 1.7mb i think it is, or 1.96mb if you disable reverb core areas (see FMOD_INIT flags).

  • You must to post comments
0
0

[quote="brett":27xc7e6u]loadEventData for ‘stream from disk’ does do someting, and no, it doesnt load it into memory.
[/quote:27xc7e6u]

Is this still true when the flag is set to FMOD_EVENT_RESOURCE_STREAMS_AND_SAMPLES?

I changed default flat to FMOD_EVENT_RESOURCE_SAMPLES then the memory usage went down for those stream from disk banks. So I guess I need to have the right flag to make it work.

  • You must to post comments
0
0

streams are ‘created’ and ‘prebuffered’. They still take memory, they arent free they need a small buffer to stream into.

Changing the flag to ‘samples’ only just means the streams arent created.

The banks that are loaded are the ones that are touched by any event under the eventgroup you are calling loadEventData on.

  • You must to post comments
0
0

Thanks for answering. So, is the number returned by Memory_GetStats the EE part of the memory usage, not the SRAM part? (Or both??)

And for the 32kb in EE ram you mentioned, is that 32kb per-event, or 32kb for the whole event system?

Thank you for clearifying these.

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.