0
0

This is a similar question as the previous one.

The following code gives me no error when

‘numOfSystems’ is smallar than 15.

However it gives me

‘FMOD error! (35) Not enough memory or resources.’

on the 16th intialization.

Is there any way to overcome this problem?

Thank you for the help.

[code:5ywi4jfy]
FMOD::System *system[32];
FMOD_RESULT result;
int numOfSystems = 15;
for(int i = 0 ; i < numOfSystems ; i++)
{
result = FMOD::System_Create(&system[i]);
ERRCHECK(result);
printf("System %d initialized\n", i);
}

printf(&quot;\n\n\n&quot;);

for(i = 0 ; i &lt; numOfSystems ; i++)
{
    result = system[i]-&gt;close();
    ERRCHECK(result);
    result = system[i]-&gt;release();
    ERRCHECK(result);
    printf(&quot;System %d released\n&quot;, i);
}

[/code:5ywi4jfy]

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.