Ok,
Let's continue to simplify the code.
This time to play modules from amiga atari pc i've decided to make a little component
using xmplayer dll, you can find the topic here.
This component is just for making visual fx demo and so, full functions are removed, you
can play , pause stop and resume.
https://forum.lazarus.freepascal.org/index.php/topic,68475.msg529662.html#msg529662I must thank to Fred Vs for dynamic load library of libxmp.dll
1. First of all for installing this component copy xmplayer to lazarus/component drawer.
2. Open xmplayerpkg.lpk
3. Compile
4. Install
5. Rebuild Lazarus IDE
6. You will see a new Component like this attached image.
7. After this you can open the project to listen module with minimum code.
8. Don't forget to put libxmp.dll in your project drawer.
Modules and xmplib are atached in zip format second post !
Good luck GTR