Announcement

Collapse
No announcement yet.

[BUG]: Run-time error '381': Invalid Property Array Index

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

  • [BUG]: Run-time error '381': Invalid Property Array Index

    When you click >| (next song) when in shuffle mode when in a folder with no songs in it, but iwth sub folders with songs in them, the error appears. Fix would be to have it search inside a random subfolder for a song, then play that so you could shuffle from multiple folders. for those of us with out artists organized by folders, it would allow to shuffle between artists not just between songs.
    nGhost - The FREE Frontend for Linux | Graphics Developer
    Linux ICE - The Car PC Distro | Team Member

  • #2
    Originally posted by Eubey View Post
    When you click >| (next song) when in shuffle mode when in a folder with no songs in it, but iwth sub folders with songs in them, the error appears. Fix would be to have it search inside a random subfolder for a song, then play that so you could shuffle from multiple folders. for those of us with out artists organized by folders, it would allow to shuffle between artists not just between songs.
    Thanks for the report. To make that work, it would be an extremely large amount of code for that to happen, plus the delay while it searches subfolders. You could have 1000 subfolders and it would have to search through them all to come up with its results. Admitedly the shuffle feature doesnt work very well at all, but the alternative would be a really slow clunky program, so I chose to keep it simple. I will look into the error message and make sure it is fixed in the next version.
    Mobile Impact
    Highly innovative car computer multimedia/entertainment system software.
    http://mobileimpact.biz.tm

    Comment


    • #3
      i dont think it would be too hard. Heres the non-programming logic behind it:

      List of folders, each folder has a number (line number)

      Function NextShuffleSong
      OpenFolder ( Random Number Between 1 and Max Folder)
      ChoseSong ( Random Number Between 1 and Max Song)
      End FUnction


      So you dont have to array every song within every folder to choose the next song. First chose a folder, then choose a song.
      nGhost - The FREE Frontend for Linux | Graphics Developer
      Linux ICE - The Car PC Distro | Team Member

      Comment


      • #4
        Originally posted by Eubey View Post
        i dont think it would be too hard. Heres the non-programming logic behind it:

        List of folders, each folder has a number (line number)

        Function NextShuffleSong
        OpenFolder ( Random Number Between 1 and Max Folder)
        ChoseSong ( Random Number Between 1 and Max Song)
        End FUnction


        So you dont have to array every song within every folder to choose the next song. First chose a folder, then choose a song.
        Wouldnt it be nice if it were that simple... Actually what the program has to do is find all of the music files within the given folder and or subfolders, including wma, mp3, wav, etc. then it has to dump the results into a temporary container, database, grid control, whatever, then it has to number all of the results, or assign a number to each song, then it has to pick at random one of the numbers(songs). It would only have to do the search once, but what if you added music later, then it would have to do the search again. This is just not an efficient way to do it, plus all of the extra coding that it would take to make it perform this. Making the program do this would just add some major lags while running and the potential for errors and failures. I have demo'd streetdeck, and it has a feature where you can sort your music by album or artist, etc. But it is very inconsistent, like sometimes it will miss songs, or it will put the wrong album art on the wrong song, etc. It works pretty well most of the time, but there is some lag time. To make it work more randomly for your tastes, you might want to consider reorganizing your music so that the program can access the music better.
        Mobile Impact
        Highly innovative car computer multimedia/entertainment system software.
        http://mobileimpact.biz.tm

        Comment


        • #5
          alright, well looks like no multi artist shuffle for me. Oh well, thanks for a great program anyway. I have only had 2 instances of crashing, and only 1 duplicateable crash, so i am very pleased with your software. much faster than road runner.
          nGhost - The FREE Frontend for Linux | Graphics Developer
          Linux ICE - The Car PC Distro | Team Member

          Comment

          Working...
          X