|
Post by lunchbox on Mar 4, 2015 23:34:26 GMT -5
With stef posting the XGM driver i figured i would post this as well to give more options for users that want to use Sega CD / Mega CD for music and the Z80 for simple sound effects. I cant take any credit for the driver itself. All i did was get it to a state so it can be called from bex programs. Just extract all files into a folder called "sfx" within the main basicgaxorz folder and move shiru.bex into the main basicgaxors folder and compile www.filedropper.com/shirusfx
|
|
|
Post by Tamkis on Mar 5, 2015 8:16:34 GMT -5
First time I have seen this particular driver. Glad to hear that you found a solution to your music problem with the SCD!
Nevertheless, will still be posting an Echo tutorial this weekend on spring break, in order to allow the community to use a 3rd plausible, modern sound driver solution.
|
|
|
Post by lunchbox on Mar 5, 2015 9:35:39 GMT -5
First time I have seen this particular driver. Glad to hear that you found a solution to your music problem with the SCD! Nevertheless, will still be posting an Echo tutorial this weekend on spring break, in order to allow the community to use a 3rd plausible, modern sound driver solution. The more the better!!! It seems like this was a major pain point for using bex for a long time.
|
|
|
Post by Davidian on Apr 5, 2015 13:43:33 GMT -5
Link seems to be down. Could you reshare it?
Thanks in advance.
|
|
|
Post by lunchbox on Apr 6, 2015 12:53:42 GMT -5
Ill try to upload it later tonight
|
|
|
Post by lunchbox on Apr 6, 2015 21:32:05 GMT -5
|
|
|
Post by Davidian on Apr 7, 2015 2:40:02 GMT -5
Thanks,
Tested and works perfect.
|
|
|
Post by nathan999 on Apr 10, 2015 4:24:25 GMT -5
I'm working on making this work from RAM - and loading samples off the CD-ROM. A bit more complicated than just store them in ROM or preloading them in the binary.
I'll post results as soon as I get them. My idea is set up a special cluster in the CD-ROM and a slot-based sounds pool in the main Genesis RAM (in my own project, I'm using word-ram to store tons of image buffers and need every single byte). You pre-load some sounds from the cluster into the sounds pool and use an ID number to play them from the pool.
|
|
|
Post by nathan999 on Apr 13, 2015 6:17:13 GMT -5
I'm still trying to make this work. No luck yet, but I'm getting close.
There was one BIG problem with the original code: The Z80 driver could only read samples from ROM. The bank selection wasn't fully coded, it just sent 7 bits to the bank register at $6000, so only samples loadad in the first 4Mb of address space (this is, the cartridge ROM) could be read and played.
In order to make this usable for the Sega-CD, samples have to be played from RAM.
In my engine I'll be using the main Megadrive RAM, which is allocated from FF0000 onwards. That means that I need all 9 bits written to the bank register. I've made a dirty attempt just writing 1s to bits 8 and 9. I had to modify the driver and reassemble it.
When I make this to work I'll try to share, but without a proper emulator with a nice debugger this is being a nightmare.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Apr 13, 2015 6:38:48 GMT -5
In my engine I'll be using the main Megadrive RAM, which is allocated from FF0000 onwards. Quoted from Sega Genesis hardware notes by Charles MacDonald. Haven't investigated / confirmed this myself though.
|
|
|
Post by nathan999 on Apr 13, 2015 7:02:32 GMT -5
Aw - that's bad news. Well, I'll have to allocate some space in Word RAM then. And it's tight! Thanks.
|
|
|
Post by mekanaizer on Apr 26, 2015 8:34:17 GMT -5
nathan999, that looks like the issue of the MegaCD BIOS version.
If you use a Mega Drive (model 1) with a MegaCD (model 1) there are no issues. BUT if you use any configuration with a MegaCD with BIOS version 2.00ID5 you have issues.
This is a ISSUE to have in consideration even when you buy Pier Solar for example.
|
|
Stef
Moldy Popcorn
Posts: 34
|
Post by Stef on May 1, 2015 10:18:57 GMT -5
From my tests, you can actually write in 68000 RAM from Z80 but definitely read operation does not work (and that is a pity, it would have been really helpful !).
|
|
|
Post by icevan on Jul 29, 2015 10:45:59 GMT -5
Hi lunchbox,
I tested your driver and this great. But I see that the sound volume is low compared to the music from a CD.
I tried to increase the volume of samples with Audacity but only get their distortion.
¿I can increase the volume in any way?
Thanks!
|
|
|
Post by lunchbox on Jul 29, 2015 11:59:48 GMT -5
Hi lunchbox, I tested your driver and this great. But I see that the sound volume is low compared to the music from a CD. I tried to increase the volume of samples with Audacity but only get their distortion. ¿I can increase the volume in any way? Thanks! This could probably be changed in the ASM source and then re-compiling the driver that is being linked or added into your bex program. I dont know for sure that there is a value in the source for that driver for volume settings that can easily be changed to be honest. Id have to look and see. More than likely its something like adding a multiply value in there for volume when writing the sample out or something of that nature. Ill try and look later tonight if i get some time.
|
|