|
Post by gredler on Jan 1, 2020 18:44:33 GMT
Happy new year! I had edited my post after trying, but didn't elaborate or ask to troubleshoot because DK's versions he sent over worked, and I haven't had time to properly document and troubleshoot the issues:
|
|
|
Post by turboxray on Jan 1, 2020 19:19:20 GMT
Same here, really good work . This is strange, may be the latest version has a bug with pads . Lock'n chase, an homebrew developed with the huc 3.21 use up to four/five players, and the pads reading code works fine . Ok I'll try rolling back to that see if it works thanks . Just so you're aware, there's a pretty big difference between 3.99 and 3.21. Speed differences aside, versions newer than 3.21 add new stuff for HuC like structs (IIRC) and such.
|
|
|
Post by monstersgoboom on Jan 1, 2020 20:10:43 GMT
Ok I'll try rolling back to that see if it works thanks . Just so you're aware, there's a pretty big difference between 3.99 and 3.21. Speed differences aside, versions newer than 3.21 add new stuff for HuC like structs (IIRC) and such. yep just tested it and it failed pretty hard with my code I have written a simple VGM player for now. it's not ideal but i have sound.
|
|
|
Post by Arkhan on Jan 2, 2020 4:53:37 GMT
Just so you're aware, there's a pretty big difference between 3.99 and 3.21. Speed differences aside, versions newer than 3.21 add new stuff for HuC like structs (IIRC) and such. yep just tested it and it failed pretty hard with my code I have written a simple VGM player for now. it's not ideal but i have sound. Try using Squirrel. It uses MML and you can get good results going from MIDI to MML. I'm here to help when it doesn't work lol
|
|
|
Post by monstersgoboom on Jan 2, 2020 5:44:36 GMT
yep just tested it and it failed pretty hard with my code I have written a simple VGM player for now. it's not ideal but i have sound. Try using Squirrel. It uses MML and you can get good results going from MIDI to MML. I'm here to help when it doesn't work lol I'll check it out soon for sure. Thanks
|
|
|
Post by monstersgoboom on Jan 2, 2020 19:52:22 GMT
The shmup sample looks like it's supposed to have audio using the simple tracker api and sound fx. If that isn't expected to work then it explains why it doesn't work for me . Nope, it was something that Uli started to add into his fork of HuC, and it was *barely* working when he abandoned the project. It wasn't left in a state where there was anything worth salvaging, so I ripped the guts out of it, and just left in enough to keep the examples compiling. Squirrel is your only current publicly-available option for playing music and sound effects from within HuC. The homebrew PCE CD games that I've seen just play back CD Audio, and then use the PSG (or ADPCM chip) for sound effects. Both Mooz and I have done work on converting Deflemask tunes to play back in a game-appropriate way, but AFAIK the results of neither of our projects are "public" at this point, although I did release some work-in-progress demos of my code a few years back (as part of Michirin9801's albums on bandcamp) ... pcengine.proboards.com/post/11496/threadI had issues trying to get 3.99 and the current squirrel option to work together, but haven't had time to present the issue with proper documentation and troubleshooting steps. There are versions available of both 3.99 and squirrel which play nicely together, but I don't have them hosted or a easy bookmark to share the link here now. The versions have locally were shared with me by DarkKobold . Jeez ... you were a part of the thread about this a few months ago, and everything was decided to be working fine, and confirmed by TheOldMan, A version of Squirrel that was compatible with the latest HuC was posted in that thread, together with another post that showed that one of the remaining problems in Squirrel was due to a typo that exists in *ALL* public version of Squirrel (including the one that was posted). pcengine.proboards.com/post/10902/threadpcengine.proboards.com/post/10949/threadIs there some newly-found problem that has not been reported? I assume you were talking about this www.deflemask.com/forum/rom-builders/huzak-a-dmf-based-sound-driver-for-pc-engine-homebrew/ Elmer ? ( Yes I went looking for deflemask solutions as that's what I use currently for Megadrive homebrew )
|
|
|
Post by elmer on Jan 2, 2020 22:35:54 GMT
Yep, that's the one. At that time I was working with Michirin9801 from the Deflemask forum to get Huzak working, but that fizzled out. It's mostly there from a PSG standpoint (as shown by the ROMs that I posted earlier), but it needs a couple of FX implemented still, and something to be done about sample playback. Delek getting busy with work and postponing the v0.12.1 update didn't help, either.
|
|
|
Post by monstersgoboom on Jan 3, 2020 1:30:24 GMT
Yep, that's the one. At that time I was working with Michirin9801 from the Deflemask forum to get Huzak working, but that fizzled out. It's mostly there from a PSG standpoint (as shown by the ROMs that I posted earlier), but it needs a couple of FX implemented still, and something to be done about sample playback. Delek getting busy with work and postponing the v0.12.1 update didn't help, either.
I wouldn't mind taking a look at it if you'd be willing to share ? My musician friend is super comfortable with deflemask and hively (ahx derived) it'd be easier than writing something myself
|
|
|
Post by turboxray on Jan 3, 2020 22:32:05 GMT
Yep, that's the one. At that time I was working with Michirin9801 from the Deflemask forum to get Huzak working, but that fizzled out. It's mostly there from a PSG standpoint (as shown by the ROMs that I posted earlier), but it needs a couple of FX implemented still, and something to be done about sample playback. Delek getting busy with work and postponing the v0.12.1 update didn't help, either.
I wouldn't mind taking a look at it if you'd be willing to share ? My musician friend is super comfortable with deflemask and hively (ahx derived) it'd be easier than writing something myself Did you have a specific project in mind or are you just getting a feel for the system/tools?
|
|
|
Post by monstersgoboom on Jan 4, 2020 1:31:48 GMT
I wouldn't mind taking a look at it if you'd be willing to share ? My musician friend is super comfortable with deflemask and hively (ahx derived) it'd be easier than writing something myself Did you have a specific project in mind or are you just getting a feel for the system/tools? I'm making/attempting to make the game shown in the 1st post on the thread, mostly to learn more about PCE as it's one of the systems I haven't played with. Picked up HuC last week to play and get more comfortable.
|
|
|
Post by turboxray on Jan 5, 2020 3:51:48 GMT
Did you have a specific project in mind or are you just getting a feel for the system/tools? I'm making/attempting to make the game shown in the 1st post on the thread, mostly to learn more about PCE as it's one of the systems I haven't played with. Picked up HuC last week to play and get more comfortable. Nice! How's your Asm-Fu?
|
|
|
Post by monstersgoboom on Jan 5, 2020 17:03:02 GMT
I'm making/attempting to make the game shown in the 1st post on the thread, mostly to learn more about PCE as it's one of the systems I haven't played with. Picked up HuC last week to play and get more comfortable. Nice! How's your Asm-Fu? I've been doing ASM coding on and off for the last few decades I was hoping to not have to write too much platform specific code but it seems like I'll need to.
|
|
|
Post by turboxray on Jan 5, 2020 18:04:39 GMT
I've been doing ASM coding on and off for the last few decades I was hoping to not have to write too much platform specific code but it seems like I'll need to. I haven't really delved into HuC 3.99 to see what's improved speed wise, but a few asm sprinkles here and there aren't too bad to iron out the wrinkles. Last I remember, it was mostly dealing with local stuff (in work ram bank, or const map bank) because the generated ASM was rather slow with pointer stuff. And of course any heavy or fancy raster interrupt effects.
|
|
|
Post by monstersgoboom on Jan 5, 2020 18:57:15 GMT
Well yeah but a few sprinkles vs an entire audio system is a bit different if that's why you're asking. ( to be honest haven't written any proper audio stuff since the C64 sid waaaaay back , vgm doesn't count ). 3.9x has structs but they're way slow obviously and a few nice things added though i don't know 3.2 as I didn't really try and use it.
I'll probably need asm for fixedpont math for example if I make the maps bigger. The players currently use 12:4 which is slow but fine for now I'll use 16:8 eventually for speed and range.
|
|
|
Post by turboxray on Jan 5, 2020 21:03:53 GMT
Yeah, that was something that always bothered me about 3.2; lack of 24bit and 32bit types for fixed point stuff. Local variables inside functions are really slow too, last I remembered. Globals are much faster, but too much usage pollutes name space. I think dshadoff said functions support static vars, so that would be a nice speed up without polluting global namespace.
Built-in map functions for 16x16 tiles just uses direct vram addressing. There's no translation table for decoding, so it potentially has some waste in vram for identical tiles.
|
|