and I've just noticed that /usr/bin precedes /usr/local/bin in my PATH, which was unexpected.
ruaok
oops.
djce
success! I am now the proud owner of an up-to-date copy of libtp.
thanks!
ruaok
Excellent!
Now does rs_Delete confuse you less??
It seems to not crash anymore. :-)
djce
I'm just checking the diffs now and updating the bindings...
rs_Delete seems happier.
About the change to tr_GetResults (whereby numResults is now an in/out parameter)...
unless you deliberately pass in number-expected + 1, you still can't tell the the difference between returned (because array full) and returned (because no more data).
ruaok
But that is what the tr_GetNumResults call is for.
Call that and then you know...
djce
Yes, but..
is there 0% chance of the list changing size between the calls?
ruaok
Yes.
djce
ok
ruaok
That is if you are calling this function when the file is in a user input state.
djce thinks: maybe that's what tr_Lock and tr_Unlock do...?
If the file is not in a user input state, the caller should not be calling that function
djce
ok, fair enough.
ruaok
Yes, before you access anything with the tr_* functions you need to lock the track first.
And that actually garantees that the data won't change.
djce
ok. One more thing then...
was the bit about changing tp_ReleaseTrack impractical?
to only require a track_t argument?
nasty circular references, like Perl, I suspect...
ruaok
because the tunepimp_t object is doing reference counting.
tracks dont get deleted until all references to the track have been released.
And tunepimp is in charge of that, not the track.
djce
Hmm... so is it the case that every tp_GetTrack should be matched by a tp_ReleaseTrack?
ruaok
Yes, its imperative.
Otherwise tracks will never get deleted from memory.
yalaforge
Sorry to interrupt you, but ...
ruaok
uh oh....
:-)
yalaforge
I've got 10000 mods!!! :-)
ruaok
Yeay!
djce
congrats!
ruaok feels like a slacker
yalaforge
thanks. now i can leave town
djce
oh, yalaforge, btw:
ruaok
off to hotel mom?
yalaforge
yes :-)
djce
"Winter" for the lyrics, but "Leather" for the music.
yalaforge
djce: cool. "Me And A Gun" for lyrics. "Tear In Your Hand" for music
although "me and a gun" is quite shocking, I think
ruaok thinks he needs to read the IRC archives
djce
Only listened to it twice so far... a few more times won't hurt.