Main Menu
  • Welcome to The RPG Maker Resource Kit.

[AVAILABLE] Audio Class

Started by modern algebra, September 14, 2007, 05:05:55 PM

0 Members and 1 Guest are viewing this topic.

modern algebra

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.

Falcon

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.

Shinami

[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]

modern algebra

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

Zeriab

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

modern algebra

Thanks. I'll take a look at it for sure