Schrijver
| PT3 + sound FX
|
SLotman msx professional Berichten: 527 | Geplaatst: 12 November 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 Berichten: 527 | Geplaatst: 12 November 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 Berichten: 582 | Geplaatst: 12 November 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 Berichten: 582 | Geplaatst: 12 November 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 Berichten: 1368 | Geplaatst: 12 November 2006, 12:34   |
Looking forward to play it, Slotman!
|
|
ro msx guru Berichten: 2315 | Geplaatst: 09 Januari 2007, 17:30   |
This would be my next thing to look into 
Having PT3 work with SEE, and vice versa. |
|
ro msx guru Berichten: 2315 | Geplaatst: 09 Januari 2007, 17:31   |
...then an SEE update is prolly needed too.. darn.....
|
|
Prodatron msx master Berichten: 1088 | Geplaatst: 09 Januari 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 Berichten: 2315 | Geplaatst: 09 Januari 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 Berichten: 2315 | Geplaatst: 09 Januari 2007, 18:19   |
ps. where to get the sources.... (I'm lazy, u should know by know  ) |
|
Prodatron msx master Berichten: 1088 | Geplaatst: 09 Januari 2007, 18:32   |
|
|
dioniso msx freak Berichten: 134 | Geplaatst: 09 Januari 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 Berichten: 2315 | Geplaatst: 10 Januari 2007, 08:22   |
thanx guys...
@ MRC: couldn't that "fixed" version be uploaded to MRC?
|
|
ro msx guru Berichten: 2315 | Geplaatst: 10 Januari 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 Berichten: 4991 | Geplaatst: 10 Januari 2007, 13:35   |
Sure! Send us a correct and commented version and we'll replace it in the downloads db!
|
|
|
|
|