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
   Talking Messages: Audio playback for Message Windows DerVVulfman 0 271 06-11-2025, 02:25 AM
Last Post: DerVVulfman
   Poccil's Tilemap Rewrite DerVVulfman 2 1,314 02-26-2025, 05:32 PM
Last Post: DerVVulfman
   Kichi's Kached Audio DerVVulfman 2 10,425 08-21-2023, 11:01 PM
Last Post: DerVVulfman
   Missing Audio Replacer LiTTleDRAgo 1 6,940 06-11-2017, 12:25 AM
Last Post: Whisper
   Super Simple MCISendString DerVVulfman 0 5,650 03-09-2017, 04:52 AM
Last Post: DerVVulfman
   Audio Settings EJlol 1 7,436 07-03-2012, 09:36 PM
Last Post: Erechel
   NRGSS Module Function Library Narzew 2 9,436 05-12-2012, 11:07 AM
Last Post: Narzew
   JEM: Jennifer's Entry Module DerVVulfman 0 6,338 10-14-2010, 04:30 AM
Last Post: DerVVulfman
   Module VirtualKeys zecomeia 0 6,130 03-14-2010, 01:25 AM
Last Post: zecomeia
   Audio File Encryption Dark-Yen 0 6,107 03-08-2008, 06:35 AM
Last Post: Dark-Yen



Users browsing this thread: 1 Guest(s)