Search found 60 matches

by Byteraver
November 11th, 2019, 10:01 pm
Forum: Everything
Topic: Cracktro :)
Replies: 54
Views: 3597

Re: Cracktro :)

Oh my, more studying material! Or rather, reference material. I believe I can make the pointer in VirtualFile more const indeed, have to look into it. I was trying to clean the XMPlayer some more, but I didn't make as much progress as I hoped. Also, started working on supporting Envelopes (volume, p...
by Byteraver
November 9th, 2019, 11:56 am
Forum: Everything
Topic: Cracktro :)
Replies: 54
Views: 3597

Re: Cracktro :)

I suppose I should use a shared_pointer in this case. I might refactor it later, I want to give more priority to the loaders. I also need to break up mod_to_wav.cpp into one or more header files and just a simple cpp file with a main() function for testing.
by Byteraver
November 8th, 2019, 7:03 pm
Forum: Everything
Topic: Cracktro :)
Replies: 54
Views: 3597

Re: Cracktro :)

Hi again :) When I was home alone in the summer holidays and I didn't see a living soul for a few weeks (our house was in the mountains, South of France, on the border with Spain), my routine also shifted to working till 5 am, sleeping till 3 pm. I wrote my asm mixing routine back then :mrgreen: . I...
by Byteraver
November 8th, 2019, 5:24 pm
Forum: Everything
Topic: Cracktro :)
Replies: 54
Views: 3597

Re: Cracktro :)

Oh, and just to be in the clear: I assume full responsibility for the "bit manipulation nightmare inside". Euh, Blame Intel's endianness for that. The code that I did NOT write myself is in itsex.c.
by Byteraver
November 8th, 2019, 2:29 pm
Forum: Everything
Topic: Cracktro :)
Replies: 54
Views: 3597

Re: Cracktro :)

Hi Albinopapa :) My God you reply fast, don't you sleep ;) It's like 8 o' clock in the morning in Oklahoma, you're hardcore man! Anyway, about the MemoryBlock template class: IIRC I was trying to make my own version of something like std::unique_ptr. The code was never used, I left it there so I cou...
by Byteraver
November 8th, 2019, 9:57 am
Forum: Everything
Topic: Cracktro :)
Replies: 54
Views: 3597

Re: Cracktro :)

Hi Albinopapa! The idea behind the assert() in virtualFile.h is that the function should not read more bits than that an integer of type "unsigned" can hold, whether "unsigned" is a 16, 32 or 64 bit integer. In that sense the comment is wrong (or simplified) more than the function. It is a bit worry...
by Byteraver
November 7th, 2019, 9:24 pm
Forum: Everything
Topic: Cracktro :)
Replies: 54
Views: 3597

Re: Cracktro :)

Hi Albinopapa! Thanks again for the great insights. Your example of how you took out "the machinery" from a function surely struck a chord, the appeal is clear. Question: do you always / mostly write your code / classes / functions in template form? Is that "a thing" now? It seems a bit overly compl...
by Byteraver
November 6th, 2019, 8:22 pm
Forum: Everything
Topic: Cracktro :)
Replies: 54
Views: 3597

Re: Cracktro :)

Hey Albinopapa! Thanks for the swift help. I'm in full refactoring frenzy. Memory leaks appeared during the process, then disappeared again (luckily) ;) I remember Chili putting the sprite in a vector (if I'm not mistaken) and doing some debug-mode performance tuning. Have to find that video back, w...
by Byteraver
November 4th, 2019, 9:08 pm
Forum: Everything
Topic: Cracktro :)
Replies: 54
Views: 3597

Re: Cracktro :)

Haha, no worries, I will come back to the forum every now and then. I'm glad you enjoy it as much as I do. I'm playing with std::unique_ptr, and am in the process of refactoring my code to remove all new/delete combo's, initializer functions (instead of proper constructors), char pointers etc. Big j...
by Byteraver
November 1st, 2019, 10:01 am
Forum: Everything
Topic: Cracktro :)
Replies: 54
Views: 3597

Re: Cracktro :)

I'm a bit relieved to see that the fact that my trimTrailingSpaces function actually works fine is not a coincidence or an exception waiting to happen ;) I did test it with zero as a parameter and it gave no error in debug mode so I trusted it to be fine. I considered using your version instead stil...