Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2007
    Posts
    186

    Peekaboo! Quick Help With "Loop ON/OFF"

    Hey Guys,
    I'm currently working on an audio player, which I'm hoping to release on the forum pretty soon as a freeware, but I've run into a little problem...Here goes:

    My project doesn't use a media player plug in,but rather uses the built in audio engine. It works pretty well but for one problem:
    I want to give the user the option to loop the currently playing track (As in toggle Loop on/off currant track on the click of a button)..I've spent a lot of time but have got the DESIRED result.I worked on the "On Audio" - on finish event but to no avail. I did manage to loop a track but when i turned the Loop button to "off" it still kept repeating the same track over and over - Its really frustrating. Please help me guys - As soon as possible, better if it is is the form of an example...

    Thank You

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    here, try this

    Code:
    loop = Audio.IsLooping(CHANNEL_NARRATION); 
    if loop then 
    Audio.SetLooping(CHANNEL_NARRATION, false); 
    else 
    Audio.SetLooping(CHANNEL_NARRATION, true); 
    end
    output enhanced with AMS Code Pretty

    EDIT, sorry, forgot to mention, put that in your loop button
    Last edited by RizlaUK; 05-03-2007 at 04:31 AM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Mar 2007
    Posts
    186
    Thanx Riz, I'll try that and let you know...

  4. #4
    Join Date
    Mar 2007
    Posts
    186

    Thanks a Lot RizlaUk

    Hey just want to thank you for the codes...it works fine (Phew!Finally). You wont believe the codes that i actually came up with to find a solution & all it took was 6 simple lines of code...

  5. #5
    Join Date
    Feb 2007
    Location
    Missouri
    Posts
    178
    Yeah I use the same thing for MusicFuse, but with a few tweaks. Mine gets it from the registry so if you start the program it will automaticly set looping on or off.

  6. #6
    Join Date
    Mar 2007
    Posts
    186
    Hey Haydeng,
    Could you share that aspect of the code pls? I'd really appreciate it...

Similar Threads

  1. Quick Action Run Program Failure
    By mikenac in forum AutoPlay Media Studio 6.0
    Replies: 10
    Last Post: 07-19-2007, 09:13 PM
  2. Editing Quick Action Properties
    By 1PT in forum AutoPlay Media Studio 6.0
    Replies: 3
    Last Post: 04-24-2007, 05:11 PM
  3. two quick questions
    By Bendude in forum AutoPlay Media Studio 6.0
    Replies: 6
    Last Post: 02-15-2006, 06:35 AM
  4. Quick Launch Folder
    By csd214 in forum Setup Factory 7.0
    Replies: 1
    Last Post: 01-03-2005, 12:43 AM
  5. Quick Tip: Bytes to kb -mb -gb
    By SUF6NEWBIE in forum AutoPlay Media Studio 5.0
    Replies: 12
    Last Post: 08-31-2004, 01:07 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