LoadSound
LoadSound Filename$, SoundIndex
 
Parameters:

    Filename$ = The file name of the sound you wish to load
    SoundIndex = The Index where this sound data should be stored
Returns: NONE
 

LoadSound will load a sound file into your computers sound memory. You must provide it will the filename and path of the sound file you wish to load, plus a free Sound Index where the loaded sound data should be stored. Once the sound data has been loaded, you can play the sound using the PlaySound, PlayDynamicSound commands.




FACTS:


* LoadSound Expects sound files to be in the WAV format.



Mini Tutorial:


This example will load the sound file called "explosion.wav" as sound #1. ONce the sound is loaded into


  
  
; 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))
  
; 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
  

 
Related Info: GetFreeSound | LoopSound | PlaySound | SoundFreq | SoundMasterVolume | SoundPan | SoundVolume | StopSound :
 


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