Final Solution:
(only a small Example without any special error handling)
1) First off all you need the playsid.library and the fd file for the playsid.library
2) By using the FD Builder (can be found here in the Download Section) go an create an Amos-Extension fot the use of the playsid.library
3) Add this new Extension to your Amos enviroment
now add some code to your project.
4.) Open the Library
Erase All
A=_playsid Base()
If A=0
Print "error"
End If
5.) Init
A=Lvo Allocemulresource()
6)Load a SID File
M0DULE$=Fsel$("*.sid","","Load a ","SID Module")
M0DULE$=M0DULE$+Chr$(0)
Open Random 1,M0DULE$
M0DULE_LENGTH=Lof(1)
Close 1
7) Reserve memory for the header
Reserve As Work 14,124
SIDHEAD=Start(14)
Call Readicon
STATUS=Lvo Readicon(Varptr(M0DULE$),SIDHEAD)
9) Call Checkmodule
STATUS=Lvo Checkmodule(SIDHEAD)
10) Reserve a Bank and load the sid module
Reserve As Work 15,M0DULE_LENGTH : Bload M0DULE$,15
M0DULE_POINTER=Varptr(M0DULE$)
11) Call Setmodule
STATUS=Lvo Setmodule(Start(15),Start(15),M0DULE_LENGTH)
12) Call Setvertfreq (50=PAL)
STATUS=Lvo Setvertfreq(50)
13) Call Startsong(Play tune X)
STATUS=Lvo Startsong(1)
Off Course we need error handling and more functions linke Stopsong, and off course we need to close the lib etc.
BTW can we Build an Small extension wit functions included ?
Again thanks for all the help / support without this would never been possible.