Idea for SoundLib & ModuleLib

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Add Features and Description:

"SoundPitch (sound,hertz)"
Alter the pitch of a sound

"SoundVolume (sound,volume#)"
Alter the volume level of a sound effect.

"SoundVolume(#volume)"
Set volume for playing sample (fade volume in/out for example)

"PlaySound(#sound,#mode)"
Set mode #0 to play only onces - or set mode #1 to loop sample. In future you could add #2 for playing pingpong, #3 backwards !? (ok added in v2.70 but not documented in the docs :wink:

ModuleVolume(#volume)
Set volume for playing module (fade volume in/out for example)

PlayModule(#module,#mode)
Set mode #0 to play only onces - or set mode #1 to loop module

greetz

MrVainSCL!