home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1997 #3
/
amigamamagazinepolishissue03-1
/
my_favourite
/
easy_tools
/
easytools
/
easysound
< prev
next >
Wrap
Text File
|
1996-12-13
|
1KB
|
70 lines
/*
$VER: EASYsound 1.0 (15.10.95) by David De Groot
This script works with 'dsound' in your c: dir.
*/
/* NOTE: change 'sound:' in rtfilerequest to whatever dir your samples are stored */
signal on error
signal on break_c
options failat 21
NL = '0a'x
bool = exists('libs:rexxreqtools.library')
if bool = 0
then say "You need RexxReqTools.library"
else call addlib('rexxreqtools.library',0,-30)
scheck = exists('c:dsound')
if scheck = 0
then do
call rtezrequest("DSOUND is not in C:.",,
"Sorry!","ATTENTION!!",'rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext')
exit
end
else
/* begin */
start:
filename = rtfilerequest('sound:',,"Pick a sample to play:", ,,
'rtfi_flags = freqf_multiselect rt_reqpos=reqpos_centerscr rtfi_buffer=true', 'zoveel')
if rtresult == 0 then exit
if zoveel == 1
then
do i=1 to zoveel.count
address command
'dsound -2 -w ' || filename || ' ' || zoveel.i || ' '
end
else exit
signal start
error:
call rtezrequest("Not a valid 8SVX sound sample file.",,
"Snorry!", "Heho!", 'rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext')
exit
break_c:
call rtezrequest("You entered a break.",,
"Right!","Heho!",'rt_reqpos=reqpos_centerscr')
exit
/* Futureplans: SELL THE FILMRIGHTS! ;-) */