The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: modern algebra on September 14, 2007, 05:05:55 PM

Title: [AVAILABLE] Audio Class
Post by: modern algebra on September 14, 2007, 05:05:55 PM
This kind of falls between Help and Requests, but I was wondering if anyone has the Audio class from RMXP. I would really appreciate it if there is one. It might be illegal, I'm not sure really. Anyway, thanks in advance if somebody does.
Title: Re: Audio Class
Post by: Falcon on September 14, 2007, 05:20:54 PM
STRIKE ONE MODERN, YOU FORGOT THE TAGS. HAHAHA.

Did you check the help files for RMXP? I remember seeing some classes in their like equipment and stuff.
Title: Re: Audio Class
Post by: Shinami on September 14, 2007, 06:15:42 PM
[spoiler=Audio methods]
Quote from: RMXP Help bookAudio.bgm_play(filename[, volume[, pitch]])
Starts BGM playback. Sets the file name, volume, and pitch in turn.

Also automatically searches files included in RGSS-RTP. File extensions may be omitted.

Audio.bgm_stop
Stops BGM playback.

Audio.bgm_fade(time)
Starts BGM fadeout. time is the length of the fadeout in milliseconds.

Audio.bgs_play(filename[, volume[, pitch]])
Starts BGS playback. Sets the file name, volume, and pitch in turn.

Also automatically searches files included in RGSS-RTP. File extensions may be omitted.

Audio.bgs_stop
Stops BGS playback.

Audio.bgs_fade(time)
Starts BGS fadeout. time is the length of the fadeout in milliseconds.

Audio.me_play(filename[, volume[, pitch]])
Starts ME playback. Sets the file name, volume, and pitch in turn.

Also automatically searches files included in RGSS-RTP. File extensions may be omitted.

Audio.me_stop
Stops ME playback.

Audio.me_fade(time)
Starts ME fadeout. time is the length of the fadeout in milliseconds.

Audio.se_play(filename[, volume[, pitch]])
Starts SE playback. Sets the file name, volume, and pitch in turn.

Also automatically searches files included in RGSS-RTP. File extensions may be omitted.

When attempting to play the same SE more than once in a very short period, they will automatically be filtered to prevent choppy playback.

Audio.se_stop
Stops SE playback.
[/spoiler]
Title: Re: [AVAILABLE] Audio Class
Post by: modern algebra on September 14, 2007, 07:17:28 PM
Yes, that was in the help file, but I wanted to know the actual coding. The reason is I want to write a method into it which will allow two BGSes playing simultaneously. However, I'd like to know exactly what it is doing so I can just write another method which mimics it, but which allows for multiple BGSes. Thanks for the Help File stuff though Shinami. And I'll put tags on it, ya tyrant :P
Title: Re: [AVAILABLE] Audio Class
Post by: Zeriab on September 14, 2007, 07:36:12 PM
I know this is not what you request but it may do what you want. Check out the SAudio module in the package.
http://phanxgames.com/forum/uploads/20070830_184754_Module_Package.zip
Title: Re: [AVAILABLE] Audio Class
Post by: modern algebra on September 14, 2007, 10:16:46 PM
Thanks. I'll take a look at it for sure