PT3 + sound FX (Development Foros MSX)MSX Resource Center MSXdev 2008 - MSX1 development bonanza!           
                       
English Nederlands Español Português Russian                  
 Noticias
   Página principal
  Almacén de noticias
  Temas de noticias

 Recursos
   Foros MSX
  Artículos
  Analisis
  Informe de ferias/RUs
  Álbum de fotos
  Ferias y encuentros
  Encuestas
  Enlaces
  Buscar

 Software
   Descargas
  Tienda Online

 MRC
   Quiénes somos
  Únete a nuestro equipo
  Donar
  Políticas
  Contacta con nosotros
  Enlázanos
  Estadísticas

 Buscar
 
  

  

 Login
 

Login

Contraseña




¿Aún no tienes una cuenta? ¡Conviértete en miembro del MSX Resource Center! ¡Únete a nosotros!.


 Estadísticas
 

Hay 57 invitados y 3 miembros en línea

Eres un usuario anónimo.
 

Foros MSX


Foros MSX

Development - PT3 + sound FX

Ir a la página ( 1 | 2 Siguiente página )
Autor

PT3 + sound FX

SLotman
msx professional
Mensajes: 543
Publicado: Noviembre 12 2006, 03:55   
Hi guys,

I'm finishing off another game, and for this one (my first game 100% in ASM) I'm using the PT3 player from Dionisio to play a simple track I made.

First I implemented the whole game, with sound fx. All working fine.

Then I added the PT3 player using hook 038h to play the music... and its working fine so far. I even created the music using only channels B and C, so it wouldn't conflict with the sound FX being played by my program at channel A...

The problem is, the player is somehow affecting the sound fx. I can hear some clicks from the FX, but somehow the music is overlapping them, I don't know why.

My sound fx routine just outputs data to ports A0h/A1h, almost like the sound command on Basic...

Does anyone have any help or advise they can give me?
SLotman
msx professional
Mensajes: 543
Publicado: Noviembre 12 2006, 07:04   
Well... for now I was able to "fake" the sound fx, by disabling the player for short periods of time, playing the fx and re-enabling the player... not much what I planned, but better than no fx or no music
Huey
msx professional
Mensajes: 586
Publicado: Noviembre 12 2006, 07:58   
A standard sfx+pt3 replayer would be a big help for all developers.
With de MSXdev and de rediscovery of the PSG (thanks to the ZX scene) this would be a gaint step.

Let's hope everyone will share their knowledge/code.
Huey
msx professional
Mensajes: 586
Publicado: Noviembre 12 2006, 11:04   
Perhaps the XLS2 guys are willing to share their player?
They released the sources for the 'pletter' compressor. Maybe they are willing to share their implementation?
pitpan
msx master
Mensajes: 1379
Publicado: Noviembre 12 2006, 12:34   
Looking forward to play it, Slotman!
ro
msx guru
Mensajes: 2329
Publicado: Enero 09 2007, 17:30   
This would be my next thing to look into
Having PT3 work with SEE, and vice versa.
ro
msx guru
Mensajes: 2329
Publicado: Enero 09 2007, 17:31   
...then an SEE update is prolly needed too.. darn.....
Prodatron
msx master
Mensajes: 1109
Publicado: Enero 09 2007, 17:47   
As far as I can see in the source the PT3 player writes to all PSG registers (see the "ROUT" routines). So it will overwrite your sound FX outs. I think you will have to modify the ROUT routine to fix this issue.
ro
msx guru
Mensajes: 2329
Publicado: Enero 09 2007, 18:10   
I'm thinking of a shared PSG buffer with status/prio. Instead of writing data to PSG, both PT3 and SEE will write the buffer. a separate routine will out all PSG data at once. Something like that, should not be to difficult... we'll see...eh see (damnit)
ro
msx guru
Mensajes: 2329
Publicado: Enero 09 2007, 18:19   
ps. where to get the sources.... (I'm lazy, u should know by know )
Prodatron
msx master
Mensajes: 1109
Publicado: Enero 09 2007, 18:32   
The soruces are here:
http://www.msx.org/modules.php?op=modload&name=Downloads&file=index&req=visit&lid=597

And yes, right, you should be able to use the PSG register buffer ("AYREGS" of the player to write FX sound for channel A! So you don't need own out routines and will have an optimal solution.
dioniso
msx freak
Mensajes: 138
Publicado: Enero 09 2007, 23:36   
The fixed version is here.

Or just download the one from the MRC and insert:

OR %10000000
AND %10111111

right after:

CH_EXIT: LD HL,AYREGS+AR_Mixer
OR (HL)
RRCA


And yes, ro, that's the way it should be done, shared PSG buffer. Otherwise, you'll have to rewrite the replayer in order not to waste time in calculating music data that won't be played because of the SFX.
ro
msx guru
Mensajes: 2329
Publicado: Enero 10 2007, 08:22   
thanx guys...

@ MRC: couldn't that "fixed" version be uploaded to MRC?
ro
msx guru
Mensajes: 2329
Publicado: Enero 10 2007, 09:00   
mm, never mind MRC. The original source contains comments etc and is better to read. But the bit set should not be ignored as Dioniso wrote..
snout

msx legend
Mensajes: 4991
Publicado: Enero 10 2007, 13:35   
Sure! Send us a correct and commented version and we'll replace it in the downloads db!
 
Ir a la página ( 1 | 2 Siguiente página )
 







(c) 1994 - 2008 Fundación MSX Resource Center. MSX es una marca registrada de MSX Licensing Corporation