Karoshi MSX Community
05 de Julio de 2021, 01:09:03 pm *
Bienvenido(a), Visitante. Por favor, ingresa o regístrate.

Ingresar con nombre de usuario, contraseña y duración de la sesión
Noticias:
 
   Inicio   Ayuda Buscar Ingresar Registrarse  
Páginas: 1 2 [3]
  Imprimir  
Autor Tema: PT3 Player *1744 bytes*  (Leído 25961 veces)
0 Usuarios y 1 Visitante están viendo este tema.
nerlaska
Karoshi Excellent Member
******
Mensajes: 1102


Programador


WWW Email
« Respuesta #30 : 23 de Enero de 2007, 10:38:16 am »

Taking a look to VT2 Pascal sources .. you will find all the info about PT3 Format.
And extend this format for adding new channels is very easy .. and extend for adding SCC is very easy.
Good luck!
En línea

MSX4EVER2GETHER
www.nerlaska.com
nrgo
Karoshi Newbie
*
Mensajes: 6


« Respuesta #31 : 11 de Septiembre de 2008, 07:55:14 pm »

Hi to all!
PT3 format and replayer are very interesting!
Since I've made some games in Turbo Pascal with MSXPad IDE, I'm interested in PT3 routines to load, play, stop, etc music and SFX in this environment.
I love PT3 and not FM Music because of the need of a memory mapper and other resource consuming things... (I'm always talking about TP and Lammassaari's libraries).

Can you help me? I'm not so skilled in ASM programming, but it would be very simple to write such routines in Pascal, for ex. using the InLine function. Also think about the possibility to use all the MSX's 64KB RAM, because programs runs on MSX-DOS.

It would be great if I'll be possible to use PT3 in C language.

Thankyou in advance for your help.
En línea
nerlaska
Karoshi Excellent Member
******
Mensajes: 1102


Programador


WWW Email
« Respuesta #32 : 12 de Septiembre de 2008, 05:44:22 am »

You can find in this forum sources in C for playing PT3 and AFX
Take a look into Snippets
En línea

MSX4EVER2GETHER
www.nerlaska.com
pitpan
Karoshi Forum's Guru
*******
Mensajes: 1812


« Respuesta #33 : 12 de Septiembre de 2008, 07:22:26 am »

There *might* be a problem: IIRC the PT3 replayer written in assembler uses self-modifying code. I'm not sure if it can be easily ported thus to Turbo Pascal inlines. But you'd better try and tell us the results.

Porting the C source to Pascal shouldn't be that hard, but AFAIK pointer handling in Pascal is not so direct as in C. Good luck with your quest!
En línea
ARTRAG
Visitante
« Respuesta #34 : 12 de Septiembre de 2008, 10:14:36 am »

There are many not self modifying version of the player both on Bulba AY site and on Sapphire blog.
If you want asm, start from that. They are not that compact, but they work fine.

PS
In my experience Pascal or C does not count.
If you execute your code in RAM, ASM self modifying code should work fine, even if included with inlines.
En línea
SapphiRe_MSX
Visitante
« Respuesta #35 : 12 de Septiembre de 2008, 11:35:24 am »

There *might* be a problem: IIRC the PT3 replayer written in assembler uses self-modifying code. I'm not sure if it can be easily ported thus to Turbo Pascal inlines. But you'd better try and tell us the results.

Robsy, as ARTRAG said, there's a PT3 replayer version that works in ROM on my blog. You heard it on last Barcelona's RU Cheesy

Regards
--
Sph.
En línea
pitpan
Karoshi Forum's Guru
*******
Mensajes: 1812


« Respuesta #36 : 12 de Septiembre de 2008, 12:56:13 pm »

The problem with the Pascal INLINEs is that you do not include assembler, but opcdes in hex. Therefore, it is not very convenient when it comes to selfreferencing, specially when you don't know where the code would be located.

And yes, I just considered the Dioniso replayer, not the Sapphire one. Blame on me!
En línea
ARTRAG
Visitante
« Respuesta #37 : 12 de Septiembre de 2008, 01:06:22 pm »

If you cannot process symbols in INLINE, the linking could place your code anywhere without permitting you any control on what to modify....
Better to avoid self modifying code in this case
En línea
Páginas: 1 2 [3]
  Imprimir  
 
Ir a:  

Impulsado por MySQL Impulsado por PHP Powered by SMF 1.1.21 | SMF © 2013, Simple Machines XHTML 1.0 válido! CSS válido!