Dev:SDK/Core - Sounds

From Slavemaker Wiki
Jump to: navigation, search
<<first <prev SDK/Core - Sounds next> last>>


SlaveMaker 3 SDK Core Sound Effects


________________________________________________________________

Variables

Sound effects are enabled in options. Enabled by the _root Boolean variable

_root.SoundsOn
- true if on
- false if off


________________________________________________________________


Core Support Functions

These core functions, in _root scope, internally test SoundsOn so you can just use them without checking it

StartMoaning - starts playing sound effect of num x girls moaning

function StartMoaning(num:Number)

StartFucking - start sound effect of fucking, num different sounds

function StartFucking(num:Number)

eg

for the sounds of two women being fucked
_root.StartFucking(2);
_root.StartMoaning(2);

Beep() - play beep sound

eg

_root.Beep();

Bloop() - play bloop sound, generally for a refusal or failure to do something

eg

_root.Bloop();

PlaySound - plays a sound, either an external mp3 or an embedded sound

function PlaySound(snd:String, repeats:Number, cnt:Number, volume:Number, delay:Number)
snd - either
a path to an mp3 file to play (eg "Sounds/Circus.mp3")
the name of a standard sound effect, see below (eg "DoorClang")
repeats - the number of times to sound effect will play, only applies for mp3 files and selected sound effects
cnt - special parameter for "Moaning" and "Fucking" it is the number of similtaneous effects
volume - the volume level, 0-100. Note does not always work, and it is a global level, it cannot be set for individual sounds if you play them simultaneously
delay - a delay in milliseconds before the sound plays

Note: pass undefined for a parameter you do not wish to use

eg

PlaySound("Sounds/Circus.mp3", 1000);
PlaySound("Frying");
PlaySound("Fucking", undefined, 3);
- same as StartFucking(3);

StopSounds() - stop all sounds playing. Automatically called by the core game when the Next button is clicked or _root.HideImages() is called

________________________________________________________________


Sound Effects

These are embedded sounds that can be used with PlaySound function above.

Some play once, some loop permanently. The game will stop them automatically when you/the game calls _root.HideImages() but you can explicitly stop with _root.StopSounds();

Whispers
MuffledCry
WhipCrack
Spank
Whipping
Punch
Miss
Ahhh
BreakIn
Breathing
Chains
Cheering
Clack
Clang
ClipClop
Clothes
Coins
DoorBell
DoorClang
DoorCreak
Footsteps
Frying - loops
Giggle
GrowlPained
Gurgle
HurtMe
Unarmed
WhipHit
Zombie
Bells
Alleluia
GhostLaugh

There are additional mp3 files in the Sounds folder that can be used with the game.


<<first <prev SDK/Core - Sounds next> last>>