home *** CD-ROM | disk | FTP | other *** search
- ##### #### ## ## #### ####
- ## ## ## ## ### ### ## ## ## ##
- ## ## ## ## ######## ## ## ##
- ##### ###### ## ## ## ## ## ##
- ## ## ## ## ## ## ## ##
- ## ## ## ## ## ## ## ##
- ## ## ## ## ## ###### ## ####
-
- Picture And Music
-
- by El Pedro of LSD
-
- PAM combines a picture and a Protracker module into an executable file. If
- you think that this is just a lamer-tool, then you are probably right. But
- as you need the CLI to use it, and you need to install a library, then the
- user will need at least half a brain to use it. Believe me, I know people
- who will find this program too hard to use. Experienced users could use
- this program without docs, but here is a lamer-guide:
-
- PAM requires Kickstart 2.04 to work. It also requires iffparse.library v37+
- and packilbm.library v1+, so copy them into your LIBS:. Note that the
- programs produced work fine under 1.3, provided the graphics mode of the
- picture is available under 1.3 (ie no SuperHires or AGA)
-
- Put the name of the picture you want showing in the 'Picture to load'
- gadget, or click the 'Select' for a file requester. (or press SHIFT-P)
-
- Put the name of the module you want playing in the 'Module to load' gadget,
- or click the 'Select' for a file requester. (or press SHIFT-M)
-
- Put the name of the picture you want showing in the 'Program to save'
- gadget, or click the 'Select' for a file requester. (or press SHIFT-R)
-
- Click 'Start' to do the biz.
-
- Voila, instant intro! Just click 'Test' to see it.
-
- This program will handle _any_ type of IFF picture, including HAM8, and
- most PT-Modules, but remember that you can't show HAM8 if you haven't got
- AGA, or AGA isn't enabled! Put Setpatch V39+ in the startup-sequence to
- enable AGA, or you can't show AGA pics. (This applies to all programs which
- need AGA, btw)
-
- Warning: PAM does not check whether the module given really is a Protracker
- module (as the format is hard to detect, ie crap) This allows you to use
- old ST1.0 modules, but it also allows everything else!
-
- ----
-
- Still to come is the version of PAM which handles any kind of module
- (provided there is a player for it).
-
- The image compressor promised in the PAM 1.0 doc is still in preparation.
- (Actually, it hasn't been touched in months...) The current 'amazing' ILBM3
- compressor may be scrapped if a better one emerges.
-
- ----
-
- Version History:
-
- Version 1.0 (13-Jan-94)
-
- The original, CLI based hack.
-
-
- Version 1.1 (??-Jan-94)
-
- Some small optimisations.
-
- Removed static data tables, and replaced with linked lists. This reduced
- the size of the executable by 30%! Was a problem with my linker library
- using static arrays. The linker just needs another generation, and it may
- well be released in its own right.
-
- Included newer version of packilbm.library, which is smaller and a bit
- faster.
-
- Removed subtle error in viewer code. Did not affect 1.0, but hit 1.1ß. It
- was a documented 'feature' of genim2. Fixed.
-
- Now uses intuition mouse read instead of hardware. This means that the CLI
- is not deselected when you quit. Now use the right mouse button to quit.
- Now it is OS clean, apart from the PT-replay (which isn't my code anyway.)
-
-
- Version 2.0 (21-Feb-94)
-
- Now features a GUI, for the superlamer! Now only a few mouse clicks
- required!
-
- Now runnable from workbench as well as CLI. (Supply your own icon - I can't
- draw!) CLI parsing removed - now just pops GUI. Same goes for the produced
- executable - just add icons, and instant slideshow!
-
- Fixed a problem where a pointer wasn't cleared on exit from one of my
- routines, so when it was called again, it gurued! Not a problem in 1.1,
- because the routine was never called twice.
-
- The PT-Replay pokes the longword after the end of the module. This causes
- memory corruption. This only corrupts with certain modules (not the
- original test module...) and was never spotted until I changed my test
- module, and MungWall complained. Now I have added 8 bytes of BSS at the end
- of the module to fix it.
-
- Picture shower fouled up because it was taking the byte width of the
- picture data to be the same as the byte width of the screen, so a picture
- would only show if it was a multiple of 64 pixels wide. (for AGA, 16 for
- ECS.) I had previously thought this was a problem with packilbm.library.
-
- Music player had the classic DBRA DMA-wait which fails on fast processors.
- Instead, it uses VHPOS to wait a few scanlines. Now should work on
- anything.
-
- Sometimes the palette for a picture would be fouled up. Caused by sign
- extension of palette values, so blue clobbered green clobbered red.
-
- This version has been tested with MungWall and Enforcer, and has no hits.
- There is no memory loss on exit. So there.
-
- This now seems to be a reliable fully working version. Now watch me muck it
- up for version 2.1...
-