if ~show('l','rexxsupport.library') then call addlib('rexxsupport.library',0,-30,0)
/* init locale */
if ~show(l,'locale.library') then call addlib('locale.library',0,-30)
if show(l,'locale.library') then catalog=opencatalog('OpusMPEGA.catalog','english',0)
dopus getfiletype '"'Titel'"' id
DT=result
If show('P','mpegport') then do
dopus send 'mpegport' 'EXIT'
DUMMY=delay(30)
end
if PPCPLAY="PPCMpegPlayer" then address command BREAKMPEG" "PPCPLAY" C"
else address command BREAKMPEG" "PlayMPEG" C"
If Show("P","DELITRACKER") then address 'DELITRACKER' 'QUIT'
If Show("P","RXTRACKER") then address 'RXTRACKER' 'QUIT'
call delay(20)
/* Player starten & testen */
if ~exists(PlayMPEG) then do
dopus request '"'getcatstr(9,'Fatal Error ...'LF''LF'MPEGA by StΘphane TAVENARD not found?!'LF'path to command: '"'%s'"'',PlayMPEG)'"' getcatstr(17,'OK|Preferences|Help')
if RC=0 then command run HELPPATH
else if RC=2 then command run SETUPPATH
exit
end
if ~exists(BREAKMPEG) then do
dopus request '"'getcatstr(10,'Error ...'LF''LF'Breaktool by Kai Iske not found?!'LF'path to command: '"'%s'"'',BREAKMPEG)'"' getcatstr(17,'OK|Preferences|Help')
if RC=0 then command run HELPPATH
else if RC=2 then command run SETUPPATH
end
if DT="MP3"&Player="PEGGYPLAYER" & show('P','Peggy') then address 'Peggy' QUIT
If DT="MP3"&(Player="MELODY"|Player="PEGGYMELODY"|Player="CD32") & show('P','MPEGPLAY.1') then address 'MPEGPLAY.1' 'QUIT'
if DT="MP2"&Player="MELODY" & exists(PlayMelody) & ~show('P','MPEGPLAY.1') then do
lister request handle '"'getcatstr(25,'Fatal Error ...'LF''LF'PPCMpegPlayer by Stefan Burstroem not found?!'LF'Path to Command: '"'%s'"'/'"'%s'"''LF'For Setup select Prefs!',PPCPATH,PPCPLAY)'"' getcatstr(17,'OK|Preferences|Help')
if DT="MP2" & (Player="MELODY"|Player="PEGGYMELODY"|Player="CD32") then do
if ~show('P','MPEGPLAY.1') then do
ADDRESS VALUE portname
dopus request '"'getcatstr(11,'Fatal Error ...'lf''lf'MPEGPlay V1.0+ by Thorsten Hansen not found?!'lf'Path to Command: '"'%s'"''lf'For Setup use Player-Setup !',PlayMelody)'"' getcatstr(1,'Quit')