Hi,

I have had a go at implementing sound in arcem. I have got to the stage where 
the code to create 16 bit pcm data should all be ok, but it is experimental 
with regards to getting sound data written out fast enough with out slowing 
down the emulator too much and other timing related things like that. 
(Processing the data seems to be insignificant, it looks as if write() is the 
thing that causes the big slowdown).

I am wondering if I understand the data sheet correctly as it seems to say 
that for 8 channels the sample period should be multiplied by 8, but this 
makes everything go unbearably slow.

If anybody would like to try it out or incorporate it, it is here
http://giles.vickycoleman.co.uk/~daniel/arcem_sound.tar.bz2

There is a patch sound.diff, and two new files, Sound.c goes in X/Sound.c and 
Sound.h in arch/Sound.h.
--- Importantly it breaks unless you recompile absolutely everything once, 
that is to say delete *all* .o files before making after you have patched.

If it goes too slow/fast/jerky or whatever adjust the variables blocksAtATime, 
numberOfFills, and delayTotal in Sound.c

Additionally, this code assumes that your unsigned short int is 16 bites wide.

Obviously to test it you can enjoy the delights of WaveSynth beep, StringLib 
and Percussion in !Configure.

Regards,
Daniel


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
arcem-devel mailing list
arcem-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/arcem-devel

Reply via email to