QUOTE (itsmeyouidiot @ May 24 2011, 11:05 PM)

I'm using an
FMOD Ex Audio Script to create a loop point for battle music, but I need to know how to call the script each time a specific battle music is played.
I'm quite new to ruby scripting and programming in general, so I'd appreciate it if anybody can help me out here!
Okay, I've figured out that the code to set loop points is :
CODE
FMod.bgm_set_loop_points(first, second)
and the code to call the sound is:
CODE
def self.bgm_play(name, volume, pitch, position = 0, looping = true)
But I still don't know where or how to use either of them.
Can someone please look at the script and help me out here?