abas05
09-16-2008, 05:53 PM
i had a strange problem with making audio files play in sequence i wrote the following code in my global functions
-- keep track of the audio files
audio_count = 1;
--loads desired audio files into a table
audio = {
"Autoplay\\Audio\\audio_file1.ogg",
"Autoplay\\Audio\\audio_file2.ogg",
"Autoplay\\Audio\\audio_file3.ogg"
};
and this code from on show event of audio page
Audio.Load(CHANNEL_NARRATION, audio[audio_count], true, false);
Insert the following code into the On Audio event of your page:
if e_State == "Finish" then
audio_count = audio_count + 1;
--ensures a valid file will be loaded
if audio_count < Table.Count(audio)+1 then
Audio.Load(CHANNEL_NARRATION, audio[audio_count], true, false);
end
end
which i took from help files
but it is not working!!!!!
and i also have 4 audio folders how to do that for my 4 folders
-- keep track of the audio files
audio_count = 1;
--loads desired audio files into a table
audio = {
"Autoplay\\Audio\\audio_file1.ogg",
"Autoplay\\Audio\\audio_file2.ogg",
"Autoplay\\Audio\\audio_file3.ogg"
};
and this code from on show event of audio page
Audio.Load(CHANNEL_NARRATION, audio[audio_count], true, false);
Insert the following code into the On Audio event of your page:
if e_State == "Finish" then
audio_count = audio_count + 1;
--ensures a valid file will be loaded
if audio_count < Table.Count(audio)+1 then
Audio.Load(CHANNEL_NARRATION, audio[audio_count], true, false);
end
end
which i took from help files
but it is not working!!!!!
and i also have 4 audio folders how to do that for my 4 folders