project_files/HedgewarsMobile/Classes/AudioManagerController.m
changeset 6208 b831679e9467
parent 6017 24631fd2fb9e
child 6656 6aeaba3ee584
equal deleted inserted replaced
6207:cbc80c22691c 6208:b831679e9467
   106     AudioServicesPlaySystemSound(selSound);
   106     AudioServicesPlaySystemSound(selSound);
   107 }
   107 }
   108 
   108 
   109 #pragma mark -
   109 #pragma mark -
   110 #pragma mark memory management
   110 #pragma mark memory management
   111 +(void) cleanupMemory {
   111 +(void) releaseCache {
   112     [backgroundMusic stop];
   112     [backgroundMusic stop];
   113     [backgroundMusic release], backgroundMusic = nil;
   113     [backgroundMusic release], backgroundMusic = nil;
   114     AudioServicesDisposeSystemSoundID(clickSound), clickSound = -1;
   114     AudioServicesDisposeSystemSoundID(clickSound), clickSound = -1;
   115     AudioServicesDisposeSystemSoundID(backSound), backSound = -1;
   115     AudioServicesDisposeSystemSoundID(backSound), backSound = -1;
   116     AudioServicesDisposeSystemSoundID(selSound), selSound = -1;
   116     AudioServicesDisposeSystemSoundID(selSound), selSound = -1;