Samio
03-20-2009, 03:16 PM
Hi Friends.
I have A problem but i think this is a bug.
i make a button for select any sound file with mp3 and wav extension.
if user select file correctloy play first file.
I ser this action for my button:
S_music = Dialog.FileBrowse(true, "Locate File", "AutoPlay\\Audio", "Sounds (.mp3, .wav)|*.mp3; *.wav|", "", "mp3", true, true);
if S_music[1] ~= "CANCEL" then
if Folder.DoesExist(String.SplitPath(S_music[1]).Drive..String.SplitPath(S_music[1]).Folder) then
Registry.SetValue(HKEY_CURRENT_USER, "Software\\Samio\\Music", "Path", String.SplitPath(S_music[1]).Drive..String.SplitPath(S_music[1]).Folder, REG_SZ);
end
sx = 1
sxx = Table.Count(S_music)
Audio.Load(CHANNEL_BACKGROUND, S_music[sx], true, false);
end
i want to when finish first file then play next file and do it all time.
for this work i set On Audio tab with this code:
if e_State == "Finish" and e_Channel == 5 then
if sx < sxx then
sx = sx + 1
else
sx = 1
end
if S_music then
Audio.Load(CHANNEL_BACKGROUND, S_music[sx], true, false);
end
end
this is correct and play my selected music all time.
I set a listbox and combobox to the my project.
and my problem:
when I select an Item from listbox or combobox my sound file stoped when finished.
my project attached.
I have A problem but i think this is a bug.
i make a button for select any sound file with mp3 and wav extension.
if user select file correctloy play first file.
I ser this action for my button:
S_music = Dialog.FileBrowse(true, "Locate File", "AutoPlay\\Audio", "Sounds (.mp3, .wav)|*.mp3; *.wav|", "", "mp3", true, true);
if S_music[1] ~= "CANCEL" then
if Folder.DoesExist(String.SplitPath(S_music[1]).Drive..String.SplitPath(S_music[1]).Folder) then
Registry.SetValue(HKEY_CURRENT_USER, "Software\\Samio\\Music", "Path", String.SplitPath(S_music[1]).Drive..String.SplitPath(S_music[1]).Folder, REG_SZ);
end
sx = 1
sxx = Table.Count(S_music)
Audio.Load(CHANNEL_BACKGROUND, S_music[sx], true, false);
end
i want to when finish first file then play next file and do it all time.
for this work i set On Audio tab with this code:
if e_State == "Finish" and e_Channel == 5 then
if sx < sxx then
sx = sx + 1
else
sx = 1
end
if S_music then
Audio.Load(CHANNEL_BACKGROUND, S_music[sx], true, false);
end
end
this is correct and play my selected music all time.
I set a listbox and combobox to the my project.
and my problem:
when I select an Item from listbox or combobox my sound file stoped when finished.
my project attached.