home *** CD-ROM | disk | FTP | other *** search
- FSS2APML
- --------
-
- This little bonus program will convert your FSS (Favourite Song System)
- file to an APML (APlayer Module List) file. It requires one parameter, the
- filename of your APML file. It will try to read your preferences from ENV:
- to get the path where you have stored your FSS file. If it can't find the
- preference file, the default path ("S:") will be used instead.
-
- FSSOptimizer
- ------------
-
- As you maybe known, the FSS will store all the modules you have heard in a
- binary tree. This is because it's the fastest way to search for a file to
- see if it already exist when you load a new module. If you know a little
- bit about binary trees, you will properly know that the tree will get
- unbalanced after a while. The term unbalanced is further described in the
- figures below:
-
-
- 8
- / \
- 3 9
- / \
- 2 4
- \
- 5
-
- Fig1: Unbalanced Tree
-
- 5
- / \
- 3 8
- / \ \
- 2 4 9
-
- Fig2: The same tree, but balanced
-
- A tree can be divided into two subtrees, from the root. The trees are split
- in layers, for instance the unbalanced tree in fig.1 has got 4 layers,
- while fig.2 has got 3 layers.
- If a tree is unbalanced it's because the difference between the number of
- layers in the two main subtrees are bigger than one.
-
- If the tree isn't balanced, it will decrease the search time. Let's take an
- example: if you will insert the number 7 in figure 1, you have to test 4
- other nodes (8, 3, 4 & 5) to know where to place it, but in figure 2 you
- only need 2 tests (5 & 8). Now you can see, the search time has been
- halfed.
-
- This is what this programs does, it balances the binary tree (now called
- AVL-trees). It will test if the modules are still present on your HD and
- delete the ones which aren't. If you have some modules on floppy disk the
- optimizer asks for the disk. To delete the module from the tree just cancel
- the disk requesters.
-
- You can also give a parameter to this program, a min hear number. This
- means that it will delete all modules which have been heard less times than
- the "min hear number" value from the tree. Let's take an example: if you
- write 2, all modules that have been heard one time will be deleted. If you
- write 10 all modules that has been heard between 1 and 9 times will be
- deleted. As default, this value will be 1, which means that no modules will
- be deleted.
-
- While the program is building the tree, the actual module will be
- displayed. Sometimes it will print them in blue, sometimes in white. When
- the module name is printed in blue, it means that the module has been
- deleted from the tree because it couldn't find it. If it's printed in
- white, means it has been deleted from the tree, because the hear count was
- below the hear number you have given.
-
- Do not run the optimizer while APlayer is running!! This will surely ruin
- your FSS file.
-
-
- NOTE THAT BOTH PROGRAMS CAN ONLY BE STARTED FROM THE CLI/SHELL!!!!!
-