DeleteAllMusics
DeleteAllMusics Index
 
Parameters:

    Index = The Index of the Music you wish to delete
Returns: NONE
 

DeleteAllMusics will delete all Musics from memory.



FACTS:


* none



Mini Tutorial:


This example will load the Music file called "explosion.wav" as Music #1, display it's status, delete it and then show the status again.

  
  
; Load the Music File "Explosion.wav" as Music #1
  LoadMusic "explosion.wav",1
  
; Display the Status of Music #1
  Print "Music #1 Status:"+Str$(GetMusicStatus(1))
  
; Delete the All Musics from memory
  DeleteAllMusics
  
; Display the Status of Music #1
  Print "Music #1 Status:"+Str$(GetMusicStatus(1))
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



This example would output (as long as the Music loaded).

  
  Music #1 Status:1
  Music #1 Status:0
  

 
Related Info: DeleteMusic | GetFreeMusic | LoadMusic :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com