Search found 237 matches

by kubilus1
Sat Apr 12, 2014 3:16 pm
Forum: SGDK
Topic: Sega Genesis Dev Kit (SGDK)
Replies: 834
Views: 494421

This patch should allow compiling rescomp in gcc. There might be a better way to detect specifically the gcc compiler instead of just linux in the preprocessor, but this should work. Index: inc/tools.h =================================================================== --- inc/tools.h (revision 176)...
by kubilus1
Thu Apr 10, 2014 3:29 pm
Forum: SGDK
Topic: Sega Genesis Dev Kit (SGDK)
Replies: 834
Views: 494421

I'm trying to get the latest SGDK to work under Linux. The holdup seems to be related to rescomp, there are some TurboC specific calls (stricmp, etc), which I was able to work through.

I've got that compiled and running, but running rescomp complains about missing appack. What is appack exactly?
by kubilus1
Sun Mar 02, 2014 7:50 pm
Forum: SGDK
Topic: VGM driver slow?
Replies: 21
Views: 5819

Here are some sound effects I've used:

https://dl.dropboxusercontent.com/u/101 ... amples.tgz

These can be converted into 8khz unsigned 8bit samples with something like the following:

Code: Select all

%.pcm: %.wav
        ffmpeg -i $< -f u8 -ar 8000 -acodec pcm_u8 $@

%.h: %.pcm
        bin2c -o $@ $<
by kubilus1
Sun Mar 02, 2014 7:44 pm
Forum: SGDK
Topic: VGM driver slow?
Replies: 21
Views: 5819

Just to clarify a bit. There are two different ways that PCMs are played back at a high level, but the "new" has a few subtle variations. 1.) Old way. First the position in one giant PCM bank is set with a 0xE0 opcode. Then 0x8n commands are used to play back one byte of the sample. The 'n' indicate...
by kubilus1
Sun Mar 02, 2014 4:30 pm
Forum: SGDK
Topic: VGM driver slow?
Replies: 21
Views: 5819

For bank switching the only thing you need is to use buffer: You set bank switch and then read several PCM sample at once. In my drivers i read 256 bytes at once for instance. Then you can set back to the VGM file bank to parse it. This way you can really improve the performance of your driver and ...
by kubilus1
Sat Mar 01, 2014 9:28 pm
Forum: SGDK
Topic: VGM driver slow?
Replies: 21
Views: 5819

Chilly Willy wrote:Yeah, I'll try to make it as compatible as possible... but better. :D
Awesome!
by kubilus1
Sat Mar 01, 2014 9:28 pm
Forum: SGDK
Topic: VGM driver slow?
Replies: 21
Views: 5819

MrKsoft, if you would be so kind as to send me the links to those VGMs, I may be able to help determine why they are running slow.
by kubilus1
Sat Mar 01, 2014 9:24 pm
Forum: SGDK
Topic: VGM driver slow?
Replies: 21
Views: 5819

The real trick, as I've found, is dealing with the bank switching. Since the PCM files can play at any time from any ram location, it seems hard to avoid a lot of banking. I'm curious ChillyWilly if you have some more ideas around theses issues? My goal with existing driver was to have convenience o...
by kubilus1
Sat Mar 01, 2014 9:19 pm
Forum: SGDK
Topic: VGM driver slow?
Replies: 21
Views: 5819

Yeah, I wrote most of the existing vgm driver. I've optimized swaths of it in asm, but there is definitely room for improvement. You may want to check the frequency of the PCM samples you are using. The driver assumes 8khz, if they are longer then it could slow down the entire playback. Likely this ...
by kubilus1
Thu Feb 27, 2014 2:41 am
Forum: Tools
Topic: Using ImageMagick
Replies: 39
Views: 14574

If you are using ImageMagick to set the palettes then something like that would be the case, but that would cost you a precious color slot that you wouldn't want to lose!
by kubilus1
Wed Feb 26, 2014 8:46 pm
Forum: Tools
Topic: Using ImageMagick
Replies: 39
Views: 14574

r57shell, I believe you are right about that afterall. It does seem that ImageMagick will apply a palette consistently, however. So even though it doesn't preserve the order of the palette bitmap, it uses the same order every time. In my tests, it seems that color index 0 will be black. If you want ...
by kubilus1
Tue Feb 25, 2014 8:44 pm
Forum: Tools
Topic: Using ImageMagick
Replies: 39
Views: 14574

As far as I know, there is no way to set certain order of colors in ImageMagick. Not directly, but you can set an image to use the same color palette as another image using ImageMagick. SO you can create an ordered color palette image in The Gimp and then use that to batch set the color palette for...
by kubilus1
Tue Feb 18, 2014 6:29 pm
Forum: Demos
Topic: blowfish, very simple musicdisk
Replies: 6
Views: 3752

That's great! Thanks for the shout-out!. As far as the size of VGMs, using the indexed PCM methods should greatly reduce the size.

I need to finish my VGM conversion tool!
by kubilus1
Mon Feb 03, 2014 12:40 am
Forum: Demos
Topic: VGM Driver Update
Replies: 38
Views: 11483

Sounds great! I appreciate the feedback on the driver. Let me know if there are any more files that have problems playing.
by kubilus1
Sun Feb 02, 2014 3:43 am
Forum: Tools
Topic: Linux Genesis Dev Setup
Replies: 125
Views: 53967

I would definitely be interested in seeing that!