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> true
<andlabs> what do you suggest doing if I want to pass in a this pointer instead?
<andlabs> alternatively you could just have two separate types and transparently convert between the two
<kode54> I'll add a callback for file access
<andlabs> cool
<andlabs> gonna start heading home, brb
andlabs has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kode54> yeah
<kode54> now all he needs to do is dupe the file access struct per use, and fill in its context member with a pointer
andlabs has joined ##yamahasynths
<andlabs> oh you already fixed it?
<kode54> yup, it's in there
<kode54> you just need to dupe/create a filesystem callback struct, and set your context pointer there
<kode54> it only goes to fopen, so you'll need to change your fopen call to accept that parameter
<kode54> and somehow pass it with your file handle, if you need it elsewhere
<andlabs> ah cool
<andlabs> oh so you took the incompatible option, heh
<kode54> it's only a slight incompatibility
<kode54> it breaks the structure and the fopen function
<kode54> anyone who used it as before only needs to change two lines
<andlabs> the custom code I had in that place was already good lol
<kode54> ah
<andlabs> just had the field named differently and the parameters switched
<kode54> ah
<kode54> well, hopefully it's more useful this way
<andlabs> also psf2fs should have also been updated since that's an instance of file context
<kode54> to others, at least
<kode54> oh, oops
<kode54> wait no
<andlabs> or not
<andlabs> my memory is wrong :D
<kode54> nope
<andlabs> anyway thanks
<kode54> psf2fs just accepts data blocks and fills out its data structures from them
<andlabs> right now I'm trying to refactor that personal vgm player I made to manage its own dependencies so I can more easily add some
<andlabs> the goal being nsf
<kode54> nice
<kode54> my deadbeef_plugins repo probably needs a refactor now, oops
<kode54> ah, that was easy
<andlabs> (the alternative to adding nsf support is "wait for vgm to add VRC6")
<kode54> heh
futarisIRCcloud has joined ##yamahasynths
<andlabs> hard mode would be hoot support
<andlabs> kode54: also ooh I think I found an error in mgba:gsfplayer
<kode54> oh?
<andlabs> [ 38%] Building C object CMakeFiles/mgba.dir/src/gba/core.c.o
<andlabs> /Users/pietro/extsrc/packs/_src/xdep/mgba/src/gba/core.c:591:2: error: #endif
<andlabs> without #if
<andlabs> #endif
<kode54> did you try to merge my upstream into an existing repository?
<kode54> I need to check that anyway
<kode54> oh, crud
<andlabs> nope, I cloned directly
<andlabs> git clone --recursive -b gsfplayer https://github.com/kode54/mgba.git
<andlabs> that #endif is a stray
<andlabs> and for good measure
<andlabs> cmake .. -DUSE_FFMPEG=OFF -DUSE_ZLIB=OFF -DUSE_MINIZIP=OFF -DUSE_PNG=OFF -DUSE_LIBZIP=OFF -DUSE_MAGICK=OFF -DUSE_SQLITE3=OFF -DUSE_LZMA=OFF -DBUILD_QT=OFF -DBUILD_SDL=OFF -DBUILD_SHARED=OFF -DBUILD_STATIC=ON -DCMAKE_SYSTEM_PREFIX_PATH='/usr;/usr/local' -DCMAKE_INSTALL_PREFIX="$(greadlink -f ../../_prefix)"
<andlabs> cmake options
<andlabs> though I could redefine some of those with my new systme since I have to include some of those libraries for libarchive anyway
<andlabs> brb again
andlabs has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xyz_39808 has quit [Read error: Connection reset by peer]
<kode54> I will push an update
<kode54> that should fix things
<kode54> that whole block around the renderer should be blocked out when MINIMAL_CORE is defined as 3 or more
andlabs has joined ##yamahasynths
<kode54> grr, why the hell does Visual Studio allow me to compile this
<kode54> I need to fix that
<andlabs> no idea
<andlabs> there must be a difference between how we build
<andlabs> but the code using ->rr isn't conditionally compiled so ?????
<kode54> I have no idea where that code block came from
<andlabs> IDK either
<andlabs> it built now, thanks
<kode54> should need another update for MINIMAL_CORE=3
<kode54> (I forgot to block out the E-Reader calls that I don't compile source for)
Xyz_39808 has joined ##yamahasynths
Stilett0 is now known as Stilett0-away
Stilett0-away is now known as Stilett0
kode54 has quit [Quit: The Lounge - https://thelounge.chat]
kode54 has joined ##yamahasynths
notnatalie has quit [Ping timeout: 272 seconds]
linkmauve has quit [Remote host closed the connection]
andlabs has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andlabs has joined ##yamahasynths
Xyz_39808 has quit [Ping timeout: 258 seconds]
andlabs has quit [Ping timeout: 240 seconds]
andlabs has joined ##yamahasynths
emily has quit [Ping timeout: 240 seconds]
andlabs has quit [Ping timeout: 260 seconds]
Xyz_39808 has joined ##yamahasynths
andlabs has joined ##yamahasynths
Xyz_39808 has quit [Read error: Connection reset by peer]
_whitelogger has joined ##yamahasynths
<Lord_Nightmare> andlabs: you and Sarayan keep missing each other :(
<kode54> when you said that, they're both in the channel
<kode54> guess they're not both online at once