DeleteMusic
DeleteMusic Index
 
Parameters:

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

DeleteMusic will delete a Music 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 Music #1 from memory
  DeleteMusic 1
  
; 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: GetFreeMusic | LoadMusic | LoadNewMusic | LoadSound :
 


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