[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JACE Mockingboard support... almost there...



On Monday, April 30, 2012 7:03:09 AM UTC+1, BLuRry wrote:
> I finally found the bugs that were preventing the emulated AY chips from getting their parameters.  Now Ultima V properly detects the presence of the card and there is some sort of sound coming out of it.  The sound is totally wrong (very buzzy and noisy, no sign of any pitch or timbre).  However, given the rhythm of the buzzing I can tell that the music routines in the game are properly addressing the card and that what I am hearing should be music.  Once I get the sound generators behaving properly, JACE will support Mockingboard and Phasor.  The SSI speech chip is something I might address in the distant future, but don't hold your breath.
> 
> If anyone wants to look over my shoulder to see if they can take a gander, I'm all ears.  The PSG is the main AY class, and it's responsible for managing the three sound generators (channels A, B and C) as well as the noise and envelope generators.  The emulation is designed to be flexible such that the clock rate of the AY and the sample rate of the output sound is configurable.  The overall goal is for the PSG.update method to generate buffers of PCM samples, one buffer for each sound generator.  Each device has a step function which is supposed to carry it from one sample to the next, but I suspect that I borked the logic in there somewhere.  I seem to remember that 4 years ago I took the source in AppleWin (which was borrowed from Mame) and refactored it to be object-oriented.  I've since refactored it again (well, PSG anyway) to take advantage of Java 5 data structures.  Anyway, given that I wrote most of it 4 years ago and am just now able to test it should indicate how little chance I had of it working as-is.  ;-D
> 
> The mockingboard emulation souce is viewable here:
> http://java-ace.svn.sourceforge.net/viewvc/java-ace/jace/src/jace/hardware/mockingboard/
> 
> Nearing another release!!!
> 
> -Brendan

Hi Brendan,

Great to hear you nearly have it going! :)

> I seem to remember that 4 years ago I took the source in AppleWin (which was borrowed from Mame)...

FYI: In early 2009, we removed the MAME code, since it was incompatible with the GPL.

Tom