Hi!
Writing an iPad musical app, and trying to be careful with memory. I’m not sure I understand well memory management. Here is my case : I create an AudioClip using AudioClip.Create, referenced in myClip. Now, I want to change the length of that clip : `
var myClip : AudioClip;
function Start()
{
myClip = AudioClip.Create(paramsHere);
myClip.SetData(data,0);
}
function ChangeClip()
{
myClip = AudioClip.Create(otherParamsHere);
myClip.SetData(otherData,0);
}
`
Am I loosing the reference to the previous clip, risking a memory leak? Should I destroy first? Or is the memory alloc handled automaticaly?
Many thanks!