Announcement

Collapse
No announcement yet.

Continuos Loop Sound?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Re: Continuos Loop Sound?

    Can a global list be a variable or does it have to be a file of some sort.

    I have done a file.search and created a variable with the list of songs. I am now trying to set the current position in the file to choose which song I want to play.

    I appologize with the questions, I am trying to figure some of this out in the users guide too. Are there other free tutorials online about this product?

    Thanks
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

    Comment


    • #17
      Re: Continuos Loop Sound?


      Can a global list be a variable or does it have to be a file of some sort.
      See "Global List" in the command reference.
      --[[ Indigo Rose Software Developer ]]

      Comment


      • #18
        Re: Continuos Loop Sound?

        Great! That worked smooth.

        Thanks for the help.
        TJ-Tigger
        "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
        "Draco dormiens nunquam titillandus."
        Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

        Comment


        • #19
          Re: Continuos Loop Sound?

          TJ could you post that?

          Comment


          • #20
            Re: Continuos Loop Sound?

            Rather than posting the code here I have attached a .zip file with .txt files in it. Hopefully they are labled clearly. If there are other questions please let me know.

            11938-actions for ams.zip
            TJ-Tigger
            "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
            "Draco dormiens nunquam titillandus."
            Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

            Comment


            • #21
              Re: Continuos Loop Sound?

              Thanks TJ

              Comment


              • #22
                Re: Continuos Loop Sound?

                Uh-Oh... My project gives me an error now, it tells me it can't find the " file name of my mp3 song" which plays throughout the project it indicates the it can't find it on the "D:\ which is my CD Rom. This happens only after i've burned to a disk and try to test it. Screen comes up and i get the error code with the aforementioned msg.. Helppppppppppppp

                Comment


                • #23
                  Re: Continuos Loop Sound?

                  What do you have as your action for the On Initialize? Is the file in the correct location? Have you explored the CD to ensure that the burned copy is named the same as in your project. I had a CD that I burned and the software changed the long file names to 8.3 file names so a log of my links were toast.

                  Just something to check into.
                  TJ-Tigger
                  "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
                  "Draco dormiens nunquam titillandus."
                  Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

                  Comment


                  • #24
                    Re: Continuos Loop Sound?

                    This is my file on initialize

                    <IR_ACTIONS_LIST>
                    <Action name="IF">
                    <Type>200</Type>
                    <Function>1</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Condition> ! (%visit% = "true")</Condition>
                    </Action>
                    <Action name="Load">
                    <Type>105</Type>
                    <Function>0</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <MP3File>%SrcDir%\Fourplay - Chant.mp3</MP3File>
                    <External>1</External>
                    </Action>
                    <Action name="Set Repeat">
                    <Type>132</Type>
                    <Function>0</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Repeat>TRUE</Repeat>
                    </Action>
                    <Action name="Play">
                    <Type>106</Type>
                    <Function>0</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    <Action name="Set Value">
                    <Type>6</Type>
                    <Function>0</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Variable>%visit%</Variable>
                    <Value>true</Value>
                    <Evaluate>0</Evaluate>
                    </Action>
                    <Action name="END IF">
                    <Type>201</Type>
                    <Function>1</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    </IR_ACTIONS_LIST>

                    I have the Mp3 inside the Distribution folder, and also word doc. i had a action set up if the click on the form it would open up a word doc to allow them to request more info, anyway when i build and the files are in the folder. I have the Data Folder Autorun exe, the Autorun txt file, Autorun.apm and it shows my mp3 file and the word doc. It all worked before the new loop info file you supplied, but the other way wouldn't play continously, so i like this new way. I just don't know why it indicates "Could not load mp3 file. file not found 'D:\fourplay-chant.mp3' I click ok and the project comes up and runs but not with any sound........

                    Comment


                    • #25
                      Re: Continuos Loop Sound?

                      Does it work when you launch it from your Hard Drive? After you do a build that is?

                      did you check the CD to ensure that the name is not being converted to an 8.3 format instead of Fourplay - chant.mp3 you would end up with fourpl~1.mp3. And then your like would not work. It may work after a build on your HD but if your burning software converts it it won't work.

                      Had that happen to me :-/

                      Another thing I don't know about is will AMS read a file with spaces in the name. You may try renaming the file to Fourplay_chant.mp3 and redo the link on the initialization page rebuild and test.



                      TJ-Tigger
                      "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
                      "Draco dormiens nunquam titillandus."
                      Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

                      Comment


                      • #26
                        Re: Continuos Loop Sound?

                        It works from my HD, i'm going to test with the _ instead of- in the file name, and the 8.3format.... I'll be back

                        Comment


                        • #27
                          Re: Continuos Loop Sound?

                          changed the - to _ and still nothing. I shortend the name to just the mp3 file name an i still get the same error. *&amp;^$#@

                          Comment


                          • #28
                            Re: Continuos Loop Sound?

                            Don't know what to tell ya. Seems weird that it would work on your hard drive and not on a CD. I would just make sure that the file is getting burned correctly on CD. Have you browsed the CD to ensure that the file is there and existing where it is supposed to be?
                            TJ-Tigger
                            "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
                            "Draco dormiens nunquam titillandus."
                            Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

                            Comment


                            • #29
                              Re: Continuos Loop Sound?

                              TJ,

                              I got it, thanks for the suggestions. I had to change the Original MP3 with the Underscore Fourplay_Chant.mp3 before i loaded. Then in the load file select and it matched up. I guess It was looking for the Fourplay-Chant.mp3, i only changed it once, forgot it needed two changes...... Thanks, no to figure out the Global List feature

                              Comment


                              • #30
                                Re: Continuos Loop Sound?

                                I am glad that you got it working.

                                Here is my latest string of actions. I got tired of listening to the same song every time I tested my build. So I set a variable to create a random variable and then use that random variable to set position in the global list and then play from the current position. Here it is

                                <IR_ACTIONS_LIST>
                                <Action name="IF">
                                <Type>200</Type>
                                <Function>1</Function>
                                <DTIndentLevel>0</DTIndentLevel>
                                <Enabled>1</Enabled>
                                <ErrorHandling>
                                <UserNotificationMode>2</UserNotificationMode>
                                <CustomErrorMessage/>
                                <OnErrorAction>0</OnErrorAction>
                                <JumpToLabel/>
                                </ErrorHandling>
                                <Condition> !%visit%</Condition>
                                </Action>
                                <Action name="Set Random Value">
                                <Type>65</Type>
                                <Function>0</Function>
                                <DTIndentLevel>1</DTIndentLevel>
                                <Enabled>1</Enabled>
                                <ErrorHandling>
                                <UserNotificationMode>2</UserNotificationMode>
                                <CustomErrorMessage/>
                                <OnErrorAction>0</OnErrorAction>
                                <JumpToLabel/>
                                </ErrorHandling>
                                <Variable>%RndValue%</Variable>
                                <Method>0</Method>
                                <Maximum>11</Maximum>
                                <Minimum>0</Minimum>
                                <Mask/>
                                </Action>
                                <Action name="Set Position">
                                <Type>113</Type>
                                <Function>0</Function>
                                <DTIndentLevel>1</DTIndentLevel>
                                <Enabled>1</Enabled>
                                <ErrorHandling>
                                <UserNotificationMode>2</UserNotificationMode>
                                <CustomErrorMessage/>
                                <OnErrorAction>0</OnErrorAction>
                                <JumpToLabel/>
                                </ErrorHandling>
                                <TargetList>playlist</TargetList>
                                <SetType>4</SetType>
                                <Index>%rndvalue%</Index>
                                </Action>
                                <Action name="Get Item">
                                <Type>112</Type>
                                <Function>0</Function>
                                <DTIndentLevel>1</DTIndentLevel>
                                <Enabled>1</Enabled>
                                <ErrorHandling>
                                <UserNotificationMode>2</UserNotificationMode>
                                <CustomErrorMessage/>
                                <OnErrorAction>0</OnErrorAction>
                                <JumpToLabel/>
                                </ErrorHandling>
                                <TargetList>playlist</TargetList>
                                <GetType>0</GetType>
                                <Index/>
                                <IndexDelimiter>;;</IndexDelimiter>
                                <Variable>%FullPath%</Variable>
                                <VarDelimiter>;;</VarDelimiter>
                                </Action>
                                <Action name="Load">
                                <Type>105</Type>
                                <Function>0</Function>
                                <DTIndentLevel>1</DTIndentLevel>
                                <Enabled>1</Enabled>
                                <ErrorHandling>
                                <UserNotificationMode>2</UserNotificationMode>
                                <CustomErrorMessage/>
                                <OnErrorAction>0</OnErrorAction>
                                <JumpToLabel/>
                                </ErrorHandling>
                                <MP3File>%fullpath%</MP3File>
                                <External>1</External>
                                </Action>
                                <Action name="Play">
                                <Type>106</Type>
                                <Function>0</Function>
                                <DTIndentLevel>1</DTIndentLevel>
                                <Enabled>1</Enabled>
                                <ErrorHandling>
                                <UserNotificationMode>2</UserNotificationMode>
                                <CustomErrorMessage/>
                                <OnErrorAction>0</OnErrorAction>
                                <JumpToLabel/>
                                </ErrorHandling>
                                </Action>
                                <Action name="Set Value">
                                <Type>6</Type>
                                <Function>0</Function>
                                <DTIndentLevel>1</DTIndentLevel>
                                <Enabled>1</Enabled>
                                <ErrorHandling>
                                <UserNotificationMode>2</UserNotificationMode>
                                <CustomErrorMessage/>
                                <OnErrorAction>0</OnErrorAction>
                                <JumpToLabel/>
                                </ErrorHandling>
                                <Variable>%visit%</Variable>
                                <Value>TRUE</Value>
                                <Evaluate>1</Evaluate>
                                </Action>
                                <Action name="END IF">
                                <Type>201</Type>
                                <Function>1</Function>
                                <DTIndentLevel>0</DTIndentLevel>
                                <Enabled>1</Enabled>
                                <ErrorHandling>
                                <UserNotificationMode>2</UserNotificationMode>
                                <CustomErrorMessage/>
                                <OnErrorAction>0</OnErrorAction>
                                <JumpToLabel/>
                                </ErrorHandling>
                                </Action>
                                </IR_ACTIONS_LIST>
                                TJ-Tigger
                                "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
                                "Draco dormiens nunquam titillandus."
                                Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

                                Comment

                                Working...
                                X