Giter VIP home page Giter VIP logo

Comments (3)

dciabrin avatar dciabrin commented on June 16, 2024 1

We'd really be grateful if you could share though, experience, and documentation you might have on those 3 possible actions because:

* We're still not sure what changing the game layout will imply.

So I think there a couple of things to consider to answer that question..

  1. Usually I think it's a good idea to use another name than puzzledp. Originally when I built my first example program that goes with the toolkit, I chose this one randomly, it had nothing special. Reusing another name with a bigger ROM layout would generally not impact your code in the emulator...
  2. ... but reusing a game name whose ROM are maxed out may change a bit the way you access the additional data. This is all due to the fact that in the physical cartridges, some clever multiplexing are done here and there to artificially increase the amount of data directly accessible by the hardware. For example, some ROMs use Fix tiles bankswitching [1] to cram more fix tiles in the ROM

So my bottom line would be: pick a name with bigger ROM layout, but if you don't need it, don't jump yet on the very latest ROM that use tricks to optimize every piece of the hardware. First because it might change the way you access the data, second because the emulator might not support all those tricks.

As far as sound ROMs are concerned, any official game name with a bigger sound ROM layout should do the trick.

* I'm still trying to figure out what's really going on in `adpcmtool.py` in terms of format conversion.

Quick aside on ADPCM-A: such channels in the YM2610 can only play samples which are roughly 12bits dynamics (due to lossy compression), at a fixed 18.5KHz. There's no way around unfortunately.

Now, adpcmtool is rather crude yet, so it expects that the input .wav it receives is a mono, 16bits (little endian), 18.5Khz sound file. It will encode it in the equivalent ADPCM-A representation (4bits per sample). It cannot yet handle ADPCM-B.

* I have no idea what would be necessary to do to handle ADPMC-B instead of ADPMC-1 with ngdevkit.

It would require me to understand and implement the ADPCM-B codec in python, and a ADPCM-B playback in the sound driver that comes with ngdevkit (nullsound), if you use it. Since neogeodev's wiki already has some info on ADPCM-B [2], I think this is totally doable. But again, there is nothing yet in the devkit, and I confess ADPCM-B is a bit in the back-burner...

* It's may be unexpected a 1 minute music mp3 gets converted to an`music.adpcma` of  605.4 kB, should it be smaller?

No unfortunately that's the way it is, because ADPCM-A is a fixed-length encoding: every sample takes 4bits, and the playback being always set to 18.5KHz, you can't cheat/tweak to get a packed size in this format.

And thanks for this really great work on ngdevkit!

Thanks for your interest :)

[1] https://wiki.neogeodev.org/index.php?title=Fix_bankswitching
[2] https://wiki.neogeodev.org/index.php?title=ADPCM_codecs

from ngdevkit.

khelkun avatar khelkun commented on June 16, 2024

@dciabrin Thanks a lot for the fast and detailed answer. That's very helpful!

from ngdevkit.

khelkun avatar khelkun commented on June 16, 2024

Using a game layout vith bigger VROM is fine so far so closing

from ngdevkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.