Ejemplo n.º 1
0
 public static void PreviewStop()
 {
     if (previewEventInstance.isValid())
     {
         previewEventInstance.stop(FMOD.Studio.STOP_MODE.IMMEDIATE);
         previewEventInstance.release();
         previewEventInstance.clearHandle();
         previewEventDesc.clearHandle();
         previewBanks.ForEach(x => { x.unload(); x.clearHandle(); });
         masterBanks.ForEach(x => { x.unload(); x.clearHandle(); });
         previewState = PreviewState.Stopped;
     }
 }