ScrapHacks/Py_Docs/SSound.md

2.1 KiB

SSound

  • StopVoice: <built-in function StopVoice>
StopVoice(channel) : stop a voice on the specified channel.
  • Play: <built-in function Play>
Play('soundname'[,vol,pan]) : ejecuta un sonido con el volumen deseado.
  • PlaySound: <built-in function PlaySound>
PlaySound((x,y,z),'soundname',vol[,AttenIni,AttenEnd,Doppler]) : ejecuta un sonido en la posicion dada con el volumen deseado.
  • SetMusic: <built-in function SetMusic>
SetMusic('soundname'[,vol]) : set the file of the background music.
  • LoadSound: <built-in function LoadSound>
LoadSound(soundfile) : carga un sonido desde un archivo empaquetado.
  • OpenVoice: <built-in function OpenVoice>
OpenVoice(name,channel) : Preload a voice on a channel.
  • StopAllSounds: <built-in function StopAllSounds>
SCRAP_StopAllSounds() : para todos los sonidos.
  • SetMusicVolume: <built-in function SetMusicVolume>
SetMusicVolume(vel) : set the volume of the background music.
  • UsePS: <built-in function UsePS>
UsePS(Name) : Crea un nuevo sonido posicional
  • SetVoiceString: <built-in function SetVoiceString>
SetVoiceString(channel,volume) : set string user data of a voice.
  • VoiceRemain: <built-in function VoiceRemain>
VoiceRemain(channel,time) : return the remaining time of a voice.
  • CreatePS: <built-in function CreatePS>
CreatePS(Name) : Crea un nuevo sonido posicional
  • SetPS: <built-in function SetPS>
SetPS(name,varname,value) :  Modifica el valor de una variable de un sonido posicional
  • PlayVoice: <built-in function PlayVoice>
PlayVoice(channel) : play a voice loaded on the specified channel.
  • DeleteAllSounds: <built-in function DeleteAllSounds>
SCRAP_DeleteAllSounds() : elimina todos los sonidos.
  • GetPS: <built-in function GetPS>
GetPS(name,varname) :  Obtiene el valor de una variable de un sonido posicional
  • SetVoiceVolume: <built-in function SetVoiceVolume>
SetVoiceVolume(channel,volume) : set the volume of a voice.