Audio Module Rewrite mcisendstring
#15
I actually have done that myself. Here are bits of the Game_System area:
PHP Code:
<?php 
class Game_System

def bgm_data
data
= {
"Battle2" => [60, 22180, 127830],
}
data.default = [0,0,0]
return
data
end
PHP Code:
<?php 
# BGM Every setting
if bgm != nil and bgm.name != ''
if bgm_data.include?(bgm.name)
start = bgm_data[bgm.name][0]
loop = bgm_data[bgm.name][1]
fin = bgm_data[bgm.name][2]
end
I also made some extra changes to be able to start a song where I define, which I am yet to work out how to make the song continue after battle. I just need to be able to get the current position.
PHP Code:
<?php 
def bgm_play
(bgm, channel=1, startpoint = 0)
PHP Code:
<?php 
fin
= bgm_data[bgm.name][2]
end
start
= startpoint if startpoint != 0
Reply }


Messages In This Thread
RE: Audio Module Rewrite mcisendstring - by Taylor - 09-19-2012, 01:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Kichi's Kached Audio DerVVulfman 2 8,584 08-21-2023, 11:01 PM
Last Post: DerVVulfman
   Missing Audio Replacer LiTTleDRAgo 1 5,886 06-11-2017, 12:25 AM
Last Post: Whisper
   Super Simple MCISendString DerVVulfman 0 4,892 03-09-2017, 04:52 AM
Last Post: DerVVulfman
   Audio Settings EJlol 1 6,528 07-03-2012, 09:36 PM
Last Post: Erechel
   NRGSS Module Function Library Narzew 2 8,223 05-12-2012, 11:07 AM
Last Post: Narzew
   JEM: Jennifer's Entry Module DerVVulfman 0 5,492 10-14-2010, 04:30 AM
Last Post: DerVVulfman
   Module VirtualKeys zecomeia 0 5,232 03-14-2010, 01:25 AM
Last Post: zecomeia
   Audio File Encryption Dark-Yen 0 5,385 03-08-2008, 06:35 AM
Last Post: Dark-Yen
   Timer Rewrite Mac 0 4,909 03-08-2008, 05:21 AM
Last Post: Mac
   Profession/Offices Module EX-PLUS! Mephistox 0 5,022 03-07-2008, 06:54 AM
Last Post: Mephistox



Users browsing this thread: 4 Guest(s)