DeleteAllSounds
DeleteAllSounds
 
Parameters: NONE
Returns: NONE
 

DeleteAllSounds will remove all sounds from memory.



FACTS:

* none



Mini Tutorial:


This example loads some sound files, displays their status, calls the DeleteAllSounds command to delete all of them and then finally show the status again.

  
  
  
; Load some sound files
  LoadSound "Button.wav",1
  LoadSound "Out.wav",2
  
; Display the Status of these Sounds
  Print "Sound #1 Status:"+Str$(GetSoundStatus(1))
  Print "Sound #2 Status:"+Str$(GetSoundStatus(2))
  
  
; Delete all the sounds from memory in one hit
  DeleteAllSounds
  
; Display the Status of Sounds
  Print "Sound #1 Status:"+Str$(GetSoundStatus(1))
  Print "Sound #2 Status:"+Str$(GetSoundStatus(2))
  
; 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 #2 Status:1
  Sound #1 Status:0
  Sound #2 Status:0
  

 
Related Info: DeleteSound | LoadSound :
 


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