Quote:regarding the current cddareader.cpp from the anonymous cvs,
you're deleting twice the buffer 0 in the destructor.
thanks, that had to be 0 and 1 :p
Quote:i've learned so much from the xbmp/xbmc source code and maybe some compiler tricks will follow now.
no, there are no compiler tricks, only caching tricks
.
as it was the first time (i believe it's the same for dvd2xbox) you first read a part from the audio from disc, then you encode it and then you write it to disc.
this has a few issues,
one is that you first have to read something before you can encode it. reading takes no proc power at all so we are wasting encoding time here
second is that encoded data is written back to disc every time a bit of data is encoded. this is a lot slower then writing back 128k chunk's of data.
so what makes it faster is that the reading of audio data is done in a seperate thread (that's why we have 2 buffers, one for reading and the other one for encoding at the same time, if the encoding is done, we change the buffers so the other buffer is encoded, and the reading can start all over again to the changed buffer)
as for the writing part, every time we have something to write, we append it to a 128k buffer. once this buffer is full we write it to disc and start from the beginning again.
that's about it...