Welcome Guest [Log In] [Register]
Welcome to Gatete Mario Engine. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
sound_ps
Topic Started: Oct 2 2015, 12:45 AM (18 Views)
Gatete
Member Avatar
Admin
Name:
sound_ps()

Code:
Code:
 
/*
//
// Name:
// sound_ps();
//
// Usage:
// sound_ps(soundid,loop);
//
// Arguments:
// argument0: Sound ID
// argument1: Loop
//
// Returns:
// Prevents a bug on Windows 8/8.1 OS when various instances of the same sound are played.
//
// Credits:
// Hypernova & Gatete
//
*/

//Stop the sound
sound_stop(argument0);

//Does the sound loop?
if (argument1) {

//Loop the given sound on argument0
sound_loop(argument0);
}
else {

//Play the given sound on argument0 once.
sound_play(argument0);
}
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Scripts · Next Topic »
Add Reply