Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
7 crawler(s) on-line.
 64 guest(s) on-line.
 1 member(s) on-line.


 pixie

You are an anonymous user.
Register Now!
 pixie:  1 secs ago
 bhabbott:  34 mins ago
 vox:  1 hr 41 mins ago
 matthey:  2 hrs 3 mins ago
 Hammer:  4 hrs 14 mins ago
 NutsAboutAmiga:  4 hrs 16 mins ago
 ruben:  6 hrs 24 mins ago
 minator:  6 hrs 24 mins ago
 agami:  6 hrs 32 mins ago
 BigD:  6 hrs 50 mins ago

/  Forum Index
   /  Amiga OS4 Software
      /  MEDPlayer.library and ptreplay.library as os4 native ?
Register To Post

Goto page ( 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 Next Page )
PosterThread
kas1e 
MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 22-Jun-2009 10:40:12
#1 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3551
From: Russia

Have anyone fixed medplayer.library which works with ahi, but by the same way as old one ? (i mean i want just replace old library in old software, to make sound works).

And what about ptreplay.library ? It's looks pretty easy to make the same library but which will works over the AHI , and if no one still, i can start to works on it.. But i think it's all already done by someones ?

The main idea is not writing new programms with new libs, but just replace old librarys in old 68k programms, to make music works in it.

Last edited by kas1e on 22-Jun-2009 at 10:40 AM.

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
spotUP 
Re: MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 22-Jun-2009 10:51:49
#2 ]
Elite Member
Joined: 19-Aug-2003
Posts: 2896
From: Up Rough Demo Squad

@kas1e

i don't think anyone has done this before, no.

_________________
AOS4 Betatester, Peg2, G4@1ghz, Radeon 9250 256mb, 1gb RAM.

http://www.asciiarena.com
http://www.uprough.net

 Status: Offline
Profile     Report this post  
salass00 
Re: MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 22-Jun-2009 11:16:35
#3 ]
Elite Member
Joined: 31-Oct-2003
Posts: 2707
From: Finland

@kas1e

I'm going to try writing a ptreplay.library -> ptplay.library/ahi.device wrapper library. I'll start by adding support for only v1 API functions and then add support for newer functions as I go.

Last edited by salass00 on 22-Jun-2009 at 11:17 AM.

 Status: Offline
Profile     Report this post  
kas1e 
Re: MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 22-Jun-2009 11:32:03
#4 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3551
From: Russia

@salass00
You have somethink already ? Becouse looks like making ptreplay.library will be more or less easy. For first just all the fucntions from the original ptreplay.library make as "empty", and only PtPlay/PtStop + strcut Mod imlement. Even with it, it will be already ok and usable.
If you have somethink already, can you upload it to some place for tests ?

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
emavys 
Re: MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 22-Jun-2009 11:42:02
#5 ]
Regular Member
Joined: 7-Dec-2003
Posts: 224
From: La Coruña (a nice place in the North-West coast of Spain)

@kas1e

If you want the medplayer to use with sound studio you can use The Maestrix so the sound output will be via ahi

 Status: Offline
Profile     Report this post  
kas1e 
Re: MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 22-Jun-2009 11:49:30
#6 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3551
From: Russia

@emavys

I am not about sound studio, i am about any 68k programm (demo, diskmag, game) which use medplayer.library. Maestrix looks like fix only "sound studio" (i tryed Maestrix already with 2-3 progs which use medplayer.library = nothink). But i talk about all the progs. Just replace old libs on new ones, and have working any app which use this library.

Last edited by kas1e on 22-Jun-2009 at 11:50 AM.

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
salass00 
Re: MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 22-Jun-2009 11:50:47
#7 ]
Elite Member
Joined: 31-Oct-2003
Posts: 2707
From: Finland

@kas1e

I haven't had time to start yet. I'll upload and post here when I have something.

 Status: Offline
Profile     Report this post  
kas1e 
Re: MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 22-Jun-2009 11:58:09
#8 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3551
From: Russia

@salass00

Yep. cool.

Btw, have you any link/doc/tutorial on "how create os4 libs" ? Want to try it too.. (still think that it can be work of 1-2 evenings). Never created any library (even for os3), so need to read a bit about with os4 additionals (rkrms will not enough). I will try for first just catch PTPlay() which done from the binary, and just printf("aaa") from the library to check that it works. Other thinks only crappy routine work to integrate ahi-plaing after (have it already) => nothink hard (i hope).

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
Hypex 
Re: MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 22-Jun-2009 14:38:59
#9 ]
Elite Member
Joined: 6-May-2007
Posts: 11329
From: Greensborough, Australia

@kas1e

It's possible a PTReplay library could be based off the AHI PT datatype.

As to MED/OctaMED well I infact have already already conveted the player code to use AHI and not CIA and Paula banging while invovled in another project. So perhaps I could help.

Or, one could make a med wrapper for those open source module player libs that are appearing.

 Status: Offline
Profile     Report this post  
kas1e 
Re: MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 22-Jun-2009 14:48:17
#10 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3551
From: Russia

@Hypex

What you mean about "off the AHI PT datatype" ? :) Did you mean write the new replayer without using already good-one ptplay.library ? (it's what i use for depacking modules, and then plaing it as raw data).

About med/octamed, did you mean that you already have medplayer.library which i can put over the old one and it will works ? Or you just have your/other replayer of med modules ?

Quote:

Or, one could make a med wrapper for those open source module player libs that are appearing.


We said exactly about that even for ptreplay.library as we as for the medplayer.library. I am already have all the necessary code for plaing correctly modules over the ptplay.library , so it's no problem to put these routines to any library/opther code.

The problem with "medplayer.library" - that i am never use it, and do not know which fucntion and how many library provide. Maybe it's almost the same easy as ptreplay.library and can be easyly changed. I can create a os4 ptreplay.library for sure, but about medplayer.library (which will be exactly by function as 68k one, i.e. we can just put it over the old one, and it will works) - i know nothink.

Or you talk about somethink other ?

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
salass00 
Re: MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 22-Jun-2009 17:55:14
#11 ]
Elite Member
Joined: 31-Oct-2003
Posts: 2707
From: Finland

@kas1e

I now have a dummy ptreplay.library where all functions just write the function name using DebugPrintF and return zero (generated using fd2pragma, fdtrans and idltool). The next job will be to start writing code for the more important library functions.

 Status: Offline
Profile     Report this post  
kas1e 
Re: MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 22-Jun-2009 18:23:17
#12 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3551
From: Russia

@salass00

Can you send it for me for tests please ?:) I think the only one important function next : Ptplay. Other ones can be just like "empty ones". Only need get name of module from the Mod structure (just decribe it the same as in the main ptreplay.library includes). Becouse these SeekPos, etc, not so necessary at all. I think everyone just use it in the past like "open, load, play, stop, unload, close" only, so the most improtant one it's ptplay i think.. Olf ptreplay.library also have fucntions like "PTFade In/Out" (to make module stop and start "flawesly", but in general it can be just skipped at the begining too).

The most important think, it's to make library with the same PtReplayBase, and the same fucntions and the same calling , etc .. But i think you know all of this already :)

Last edited by kas1e on 22-Jun-2009 at 06:27 PM.
Last edited by kas1e on 22-Jun-2009 at 06:24 PM.

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
salass00 
Re: MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 22-Jun-2009 18:49:50
#13 ]
Elite Member
Joined: 31-Oct-2003
Posts: 2707
From: Finland

@kas1e

OK. I've uploaded it here:
http://a500.org/uploads/ptreplay_lib.lha

But as I said already it doesn't do much of anything at the moment. I'm currently working on adding the most important functions, i.e. PTLoadModule, PTFreeMod, PTPlay, ...

Last edited by salass00 on 22-Jun-2009 at 06:50 PM.

 Status: Offline
Profile     Report this post  
kas1e 
Re: MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 22-Jun-2009 18:55:41
#14 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3551
From: Russia

@salass00

Yeah! Thanks a lot !

I also download OctaMEDv4_dev.lha , and detect, that medplayer.library looks not so hard. Almost the same as ptreplay.library. I.e:

* prototypes for MEDPlayer.library V2.00 © Fully Copyrighted
##base _MEDPlayerBase
##bias 30
##public
GetPlayer(initser)(D0)
FreePlayer()()
PlayModule(module)(A0)
ContModule(module)(A0)
StopPlayer()()
DimOffPlayer(dimlength)(D0)
SetTempo(tempo)(D0)
LoadModule(filename)(A0)
UnLoadModule(module)(A0)
GetCurrentModule()()
ResetMIDI()()
* functions below in V2.00 or later
SetModnum(modnum)(D0)
RelocModule(module)(A0)
##end

So, i think it can be not that hard too ..

Btw, maybe it will be help for you, i upload here routines to load/play/unload modules over the AHI. It can have bugs , but for me works fine at moment. Maybe it will be good for you just a bit update it if it need it for.

I think that for example for the PtLoadModule, we no need to load module, we just need got the name of module. And do loading when PtPlay function happenes. And from other side - do nothink for the FreeMod, just when we found Stop module, do "real unload", but for the programm itself put empty funcs again when it will try to do Free/Unload, etc.


But i think if you in interest not only add somethink to make it works, better do everythink as in old one..

Last edited by kas1e on 22-Jun-2009 at 06:57 PM.

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
salass00 
Re: MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 22-Jun-2009 21:40:34
#15 ]
Elite Member
Joined: 31-Oct-2003
Posts: 2707
From: Finland

@kas1e

I've uploaded an updated ptreplay.library at the same URL as above:
http://a500.org/uploads/ptreplay_lib.lha

This version now supports the following commands:
PTLoadModule
PTUnloadModule
PTFreeMod
PTPlay
PTPause
PTStop

I just tried it by playing some module using the PT-Player example program included with the 68k ptreplay.library on Aminet.

Last edited by salass00 on 22-Jun-2009 at 09:41 PM.

 Status: Offline
Profile     Report this post  
spotUP 
Re: MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 22-Jun-2009 23:03:21
#16 ]
Elite Member
Joined: 19-Aug-2003
Posts: 2896
From: Up Rough Demo Squad

nice thread!

kas1e do you know some demos that uses ptreplay.library and cgx/p96?
would be fun to try this lib out.

it would be cool to include a little list of stuff that works with the lib.
also, i think mr capehill is working on a fully native med player lib for os4.
it seems to progress very slowly though.. its been in the making for years i believe,
maybe he could use a hand.

edit: a searh by content gives you a nice list on aminet...

http://aminet.net/search?content=ptreplay.library

most of those are probably aga only though, but it's a start.

this one might work:
http://aminet.net/package/demo/aga/propaganda

Last edited by spotUP on 22-Jun-2009 at 11:26 PM.
Last edited by spotUP on 22-Jun-2009 at 11:16 PM.
Last edited by spotUP on 22-Jun-2009 at 11:04 PM.

_________________
AOS4 Betatester, Peg2, G4@1ghz, Radeon 9250 256mb, 1gb RAM.

http://www.asciiarena.com
http://www.uprough.net

 Status: Offline
Profile     Report this post  
kas1e 
Re: MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 23-Jun-2009 3:34:59
#17 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3551
From: Russia

@salas00, spotup
cool ! it works ! Only what a bit misunderstood: when you replace it by new library, but not put ptplay.library together, on the running stage you have "sorry, can't open ptreplay.library", but in reality, it's can't open ptplay.library .. possible to check it somehow ?

Also i start to do some tests:

RedPack6 by Potion (music disk). Runs ok, everythink works (gfx/idcmp/etc), but have "can't setup module" words when try to choice modules. I think it becouse of PTSetupMod.c. PTSetupMod() it's somethink like PtLoadMod() as i can see (just different a bit).

Russian diskmag PowerAmiga:
PowerAmiga4 - can't setup module
PowerAmiga5 - music works !
PowerAmiga6 - music works !
PowerAmiga7 - medplayer.library

My lame warp3d 68k invtro - voodoo_paula version works !

Embrion #02 Chippack by Veezya - Error while trying to play music ( i think it's again becouse of SetupMod fucntion)

TinyPlayer - ptreplay.library could not create a control structure for the loaded module.

H5 demo - Error: Could not set up musicmodule, out of timers?

Magic Mod player - works !

Maniac Ball game Arkanoid clone. Works fine ! (from the first start modes will be lowres, and a bit 'jumpy', but everythink is visibly. Then setup "hires" and your 640x480 mode.

ASTROSYN`2 Official Invitation by Madwizards. - works with some gfx/engine glitches, but ptreplay trick works as must !

Phase6 - German Disk-Mag issue #10 - works ! (engine a bit suck, but we test ptreplay.library, so, good to have one more app).

Last edited by kas1e on 23-Jun-2009 at 06:16 AM.
Last edited by kas1e on 23-Jun-2009 at 06:13 AM.
Last edited by kas1e on 23-Jun-2009 at 06:02 AM.
Last edited by kas1e on 23-Jun-2009 at 05:55 AM.
Last edited by kas1e on 23-Jun-2009 at 05:36 AM.
Last edited by kas1e on 23-Jun-2009 at 05:34 AM.
Last edited by kas1e on 23-Jun-2009 at 05:27 AM.
Last edited by kas1e on 23-Jun-2009 at 04:41 AM.
Last edited by kas1e on 23-Jun-2009 at 04:41 AM.
Last edited by kas1e on 23-Jun-2009 at 04:18 AM.
Last edited by kas1e on 23-Jun-2009 at 04:15 AM.
Last edited by kas1e on 23-Jun-2009 at 04:10 AM.
Last edited by kas1e on 23-Jun-2009 at 03:59 AM.
Last edited by kas1e on 23-Jun-2009 at 03:57 AM.
Last edited by kas1e on 23-Jun-2009 at 03:49 AM.
Last edited by kas1e on 23-Jun-2009 at 03:40 AM.

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
kas1e 
Re: MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 23-Jun-2009 7:41:47
#18 ]
Elite Member
Joined: 11-Jan-2004
Posts: 3551
From: Russia

@spot
What about medplayer.library, for me at moment it looks absolutly the same as salas00 already do for the ptreplay.library. If he will have a bit more time, maybe he also can spend some hours to make the same for the medplayer.library ?:)

The differenses with the ptreplay.library only with depacking os4 native library (for ptreplay we use already ptplay.library, and for the medplayer.library we can use for example libmikmod.lha from the os4depot). Must to say that tunenet plugin based on it, crashes my tunenet very well right now on the with GR pointed to the newlib.library.kmod

Last edited by kas1e on 23-Jun-2009 at 07:57 AM.
Last edited by kas1e on 23-Jun-2009 at 07:49 AM.

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites

 Status: Offline
Profile     Report this post  
salass00 
Re: MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 23-Jun-2009 7:49:54
#19 ]
Elite Member
Joined: 31-Oct-2003
Posts: 2707
From: Finland

@kas1e

PTSetupMod/PTFreeMod is for modules that are already in memory (f.e. if they are embedded in a data chunk in the program executable). PtInit seems to need also the size of the module but PTSetupMod is only passed the pointer to the module data and no size. I'll see what I can do though.

PTLoadModule/PTUnloadModule is for loading the module from a file.

 Status: Offline
Profile     Report this post  
salass00 
Re: MEDPlayer.library and ptreplay.library as os4 native ?
Posted on 23-Jun-2009 9:02:48
#20 ]
Elite Member
Joined: 31-Oct-2003
Posts: 2707
From: Finland

@kas1e

New version:
http://a500.org/uploads/ptreplay_lib.lha

This one adds support for PTSetupMod. The PTPlay, PTPause and PTStop functions now always return TRUE instead of zero.

 Status: Offline
Profile     Report this post  
Goto page ( 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 Next Page )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle