DeleteSound
DeleteSound SoundIndex
 
Parameters:

    SoundIndex = The Index identifier of the sound you wish to delete
Returns: NONE
 

DeleteSound will remove a sound from memory.



FACTS:


* none



Mini Tutorial:


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

  
  
; Load the Sound File "Explosion.wav" as sound #1
  LoadSound "explosion.wav",1
  
; Display the Status of Sound #1
  Print "Sound #1 Status:"+Str$(GetSoundStatus(1))
  
; Delete the Sound #1 from memory
  DeleteSound 1
  
; Display the Status of Sound #1
  Print "Sound #1 Status:"+Str$(GetSoundStatus(1))
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



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

  
  Sound #1 Status:1
  Sound #1 Status:0
  

 
Related Info: DeleteAllSounds | GetSoundPlaying | GetSoundStatus | LoadNewSound | LoadSound | PlaySound :
 


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