calling sounds from script,. .
Posted: Thu Sep 08, 2011 6:04 pm
Would be very useful to have something like; playSound(Sound, NoteNr, Channel);
Lots of times it would be way better,..
Lots of times it would be way better,..
The rapid development solution with a tiny footprint
http://www.emix8.org/forum/
Code: Select all
int S = SoundRepeat.Iteration;
switch(Sound[S,0])
{
case 0: Play.Sound = Bass; break;
case 1: Play.Sound = Kick; break;
}
Play.NoteNr = Sound[S,1];
Play.Channel = Sound[S,2];
Code: Select all
void playSound(int Sound, float Note, int Channel)
{
int S = SoundSize;
Sound[S,0] = Sound;
Sound[S,1] = Note;
Sound[S,2] = Channel;
SoundSize++;
}