Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 1 of 1
  1. #1
    Join Date
    Nov 2006
    Location
    Tehran
    Posts
    176

    Donot Stop Audio Playing

    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:
    Code:
    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:
    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.
    Attached Files

Similar Threads

  1. Audio stop
    By Brave Heart in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 04-26-2007, 09:10 AM
  2. Build failure because of errors
    By Ed Stanley in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 02-07-2006, 03:51 PM
  3. Playing Multiple Audio Files in Sequence
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 6
    Last Post: 08-15-2005, 03:38 PM
  4. Playing Multiple Audio Files.
    By chirs_w in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 07-24-2004, 03:59 PM
  5. Is Audio Playing
    By markstaylor in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 06-23-2004, 06:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts