home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 28
/
amigaformatcd28.iso
/
-readerstuff-
/
barry_beukhof
/
mpagui_mui
/
playlist.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-04-29
|
2KB
|
60 lines
/* Play Current MPAgui List */
options results
address MPAgui
MUIA_List_Entries = 0x80421654
MUIA_Cycle_Active = 0x80421788
/*Saving list to temp file*/
result = "Ram:list.temp"
if open('List', result, 'w') = 1 then do
list ID LIST1 ATTRS MUIA_List_Entries
max = result
do i = 0 to max - 1
list ID LIST1 POS i
writeln('List', result)
end
call close('List')
/*Playing List with selected options*/
cycle ID MAXFR ATTRS MUIA_Cycle_Active
if result = '0' then frequency = "-F 11025"
else if result = '1' then frequency = "-F 22050"
else frequency = "-F 44100"
cycle ID QUALR ATTRS MUIA_Cycle_Active
if result = '0' then quality = '-q0'
else if result = '1' then quality = '-q1'
else quality = '-q2'
cycle ID MIXFR ATTRS MUIA_Cycle_Active
if result = '0' then mixfreq = "-x 11025"
else if result = '1' then mixfreq = "-x 22050"
else mixfreq = "-x 44100"
cycle ID COUNT ATTRS MUIA_Cycle_Active
if result = '0' then counter = ''
else if result = '1' then counter = "-T"
else counter = "-n"
check ID filte; FILTER = '-f'RESULT
CHECK ID MONOp; VARI = RESULT
IF VARI = 0 THEN MON = ''
ELSE MON = '-m'
check id ahiou; VARI = result
if VARI = 0 then AH = ''
else AH = "-I"
check ID waitb; VARI = result
if VARI = 0 then wa = ' '
else wa = "-w"
check ID ASYNC; VARI = result
if VARI = 0 then asy = '-r'
else asy = ''
popasl ID MPEGA; program = result
SLIDER ID BUFFE; BUFFER = '-t'RESULT
SLIDER ID PRIOR; PR = '-p'RESULT
address command program ">con:100/100/440/70/MPAgui_Output" "Ram:list.temp" "-l" pr frequency quality mixfreq mon ah wa buffer counter asy filter
/*Deleting Temp File*/
address command "c:delete" ">nil:" "Ram:list.temp"
return