home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Audio 4.94 - Over 11,000 Files
/
audio-11000.iso
/
amiga
/
midi
/
med210.lhw
/
in.adf
/
Programmers
/
Examples
/
Basic_example
(
.txt
)
next >
Wrap
AmigaBASIC Source Code
|
1993-02-07
|
743b
|
33 lines
REM This small program demonstrates
REM how to use "medplayer.library"
REM with Basic.
REM First copy "medplayer.bmap" from
REM MEDPlayerLibrary-drawer to LIBS:
LIBRARY "medplayer.library"
DECLARE FUNCTION GetPlayer& LIBRARY
DECLARE FUNCTION LoadModule&() LIBRARY
DECLARE FUNCTION GetCurrentModule&() LIBRARY
DEFLNG md,sa
PRINT "medplayer.library demonstration"
INPUT "Enter module name";x$
x& = GetPlayer&(1)
IF x& = 0 THEN PRINT "Player allocated." :ELSE PRINT "Failed."
a$ = x$+CHR$(0)
sa = SADD(a$)
md = LoadModule&(sa)
PRINT "module loaded, address = ";md
CALL PlayModule(md)
PRINT "Now playing, press any key to quit."
WHILE INKEY$="":WEND
CALL FreePlayer
CALL UnLoadModule(md)
PRINT "Bye!!"
END