Final merge of Google Summer of Code 2008 work...
Port SDL 1.3 to the Nintendo DS by Darren Alton, mentored by Sam Lantinga --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403188
This commit is contained in:
parent
e6faee6b2a
commit
ede44c4b85
123 changed files with 6082 additions and 388 deletions
|
@ -335,9 +335,8 @@ FileReaderThread_ReadNextChunk(FileReaderThread * frt)
|
|||
}
|
||||
/* construct pointer */
|
||||
char *writePtr = (char *) (theItem->GetFileBuffer(theItem) +
|
||||
(theItem->
|
||||
mWriteToFirstBuffer ? 0 : theItem->
|
||||
mChunkSize));
|
||||
(theItem->mWriteToFirstBuffer ? 0 :
|
||||
theItem->mChunkSize));
|
||||
|
||||
/* read data */
|
||||
result = theItem->Read(theItem, writePtr, &dataChunkSize);
|
||||
|
@ -486,8 +485,7 @@ AudioFileManager_GetFileData(AudioFileManager * afm, void **inOutData,
|
|||
} else {
|
||||
*inOutDataSize = afm->mChunkSize;
|
||||
*inOutData =
|
||||
afm->mReadFromFirstBuffer ? afm->mFileBuffer : (afm->
|
||||
mFileBuffer +
|
||||
afm->mReadFromFirstBuffer ? afm->mFileBuffer : (afm->mFileBuffer +
|
||||
afm->mChunkSize);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue