ChanServ changed the topic of ##yamahasynths to: Channel dedicated to questions and discussion of Yamaha FM Synthesizer internals and corresponding REing. Discussion of synthesis methods similar to the Yamaha line of chips, Sound Blasters + clones, PCM chips like RF5C68, and CD theory of operation are also on-topic. Channel logs: https://freenode.irclog.whitequark.org/~h~yamahasynths
<andlabs> no
<andlabs> it's an infamously bad movie
<andlabs> and that video I linked is also the source of a popular meme gif
l_oliveira has quit [Quit: ChatZilla 0.9.92-rdmsoft [XULRunner 35.0.1/20150122214805]]
<Lord_Nightmare> note: if you have patched a ROM in MAME and the ROM name in your zip file or directory does not match the name MAME is looking for, it won't find it
<Lord_Nightmare> since it searches in zip and 7z files by crc32 first, then name, and searches in directories by name only, afaik
<Lord_Nightmare> so if neither the crc32 nor name matches, it won't see it
<Lord_Nightmare> if the name is wrong, crc32 is correct and the sha1 is wrong AND it is in a zip or 7z file it will work but show a warning
<Lord_Nightmare> if the name is correct, crc32 is wrong and sha1 is wrong, it will work but show a warning regardless of whether it is in an archive or not
<Lord_Nightmare> oh, and the SIZE can be wrong too
<Lord_Nightmare> MAME looks up roms by name, crc32, sha1 and size
<Lord_Nightmare> well, it checks those
<Lord_Nightmare> it actually only looks them up by crc32 and name
<Lord_Nightmare> it checks size and sha1 after it finds them
_whitelogger has joined ##yamahasynths
ej5 has joined ##yamahasynths
_whitelogger has joined ##yamahasynths
<Sarayan> cr1901: which dsp code?
<Sarayan> whatever, the answer is universal. Once we put the hashes of something in mame, it mysteriously appears all over the internet anyway
ej5 has quit [Read error: Connection reset by peer]
Sarayan has quit [Quit: bike week]
_whitelogger has joined ##yamahasynths
<andlabs> hey ValleyBell should MemoryLoader be handing PlayerBase waaaaay less data than it should
<andlabs> Filename: 07 - Space Walk (Stage 2A).vgz
<andlabs> VGM file ends early! (filePos 0x00D48F, end at 0x00D48E)
<andlabs> Invalid VGM loop offset 0x00B93B - ignoring!
<andlabs> the whole file is being read and with PreloadBytes set to the file length thish appens
<andlabs> this does have the hilarious effect of causing the songs to just ... stop
_whitelogger has joined ##yamahasynths
_whitelogger has joined ##yamahasynths
_whitelogger has joined ##yamahasynths
Xyz_39808 has joined ##yamahasynths
<ValleyBell> andlabs: Maybe it fails to properly get the size of the decompressed data.
<ValleyBell> .gz files have a 4-byte CRC32 and a 4-byte file size (for the decompressed data) appended to the end.
<ValleyBell> hmm ... "Thunder Force IV - 07 - Space Walk (Stage 2A).vgz", 54790 bytes (compressed)
<ValleyBell> 219724 bytes decomrpessed - it plays fine in the libvgm player executable
<ValleyBell> Did you maybe set PreloadBytes to the size of the .gz?
_whitelogger has joined ##yamahasynths
_whitelogger has joined ##yamahasynths
Xyz_39808 has quit [Read error: Connection reset by peer]
<andlabs> no I set it first to 0x100 and then to the size of the uncompressed file
<andlabs> 0x100 is what your player binary uses
cr1901_modern1 has joined ##yamahasynths
cr1901_modern has quit [Ping timeout: 245 seconds]
<ValleyBell> then I don't know what's happening
<ValleyBell> Okay, I see the problem.
<ValleyBell> -if(ret != Z_OK)
<ValleyBell> +if(ret != Z_OK && ret != Z_STREAM_END)
<andlabs> ah
<andlabs> heh=
<andlabs> thanks
<andlabs> would have debugged it myself over the next hour r so but that saves some time
<andlabs> good morning from me
<ValleyBell> You're welcome. And thanks for finding bugs :)
cr1901_modern1 has quit [Quit: Leaving.]
cr1901_modern has joined ##yamahasynths
<andlabs> no problem
<andlabs> in any case my own personal CLI frontend thingy now plays VGM files, and without threads to boot =p
<andlabs> and also digs into zip files
<andlabs> now 7z files because joshw.info archives are 7zip and then I'll be gold for now
andlabs has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ej5 has joined ##yamahasynths
andlabs has joined ##yamahasynths
andlabs has quit [Read error: Connection reset by peer]
andlabs has joined ##yamahasynths
ej5 has quit [Read error: Connection reset by peer]
<andlabs> yay I can play songs in 7z file snow
<andlabs> I wonder if this also obviates minizip
<andlabs> it does not
<ValleyBell> Whenever I'll get to work on the actual new VGMPlay application, I'll ask you for hints on playing songs from 7z files.
<ValleyBell> because that's on the VGMPlay roadmap I have my mind
<andlabs> well I'm trying to build a static binary so
<andlabs> I just used the 7zC library in the lzma sdk
<andlabs> you may consider using libarchive directly instead, since it'll give you all the archive formats
<ValleyBell> might be an idea
<ValleyBell> though I'm not sure how well this will work under Windows
<andlabs> "Supports Windows, including Cygwin, MinGW, and Visual Studio. "
<andlabs> I can't figure out how to build this statically but that's probably not in scope for what you want to build
<andlabs> in this case I'm just building something for my own personal use
<andlabs> I wouldn't be able to legally release it anywya because a) my employer and b) blatant disregard for software licenses
<andlabs> it's basically Specifically For Me
<andlabs> and with rar support I think my player is now feature complete for what I want out of it yay
<ValleyBell> I guess it's a good thing I'm strictly splitting my activity as "Valley Bell" from activity with private accounts.
<ValleyBell> so I don't have such problem
<ValleyBell> I'm pretty sure my employer doesn't care what projects I'm working on in my spare time anyway.
Xyz_39808 has joined ##yamahasynths