comparison src/cdrom/macosx/AudioFileReaderThread.c @ 1338:604d73db6802

Removed uses of stdlib.h and string.h
author Sam Lantinga <slouken@libsdl.org>
date Tue, 07 Feb 2006 09:29:18 +0000
parents 3692456e7b0f
children d910939febfa
comparison
equal deleted inserted replaced
1337:c687f06c7473 1338:604d73db6802
544 544
545 void delete_AudioFileManager (AudioFileManager *afm) 545 void delete_AudioFileManager (AudioFileManager *afm)
546 { 546 {
547 if (afm != NULL) { 547 if (afm != NULL) {
548 if (afm->mFileBuffer) { 548 if (afm->mFileBuffer) {
549 free (afm->mFileBuffer); 549 free(afm->mFileBuffer);
550 } 550 }
551 551
552 SDL_free(afm); 552 SDL_free(afm);
553 } 553 }
554 } 554 }
592 afm->mForkRefNum = inForkRefNum; 592 afm->mForkRefNum = inForkRefNum;
593 afm->mBufferSize = inChunkSize; 593 afm->mBufferSize = inChunkSize;
594 afm->mBufferOffset = inChunkSize; 594 afm->mBufferOffset = inChunkSize;
595 afm->mChunkSize = inChunkSize; 595 afm->mChunkSize = inChunkSize;
596 afm->mFileLength = inFileLength; 596 afm->mFileLength = inFileLength;
597 afm->mFileBuffer = (char*) malloc (afm->mChunkSize * 2); 597 afm->mFileBuffer = (char*) SDL_malloc(afm->mChunkSize * 2);
598 FSGetForkPosition(afm->mForkRefNum, &afm->mAudioDataOffset); 598 FSGetForkPosition(afm->mForkRefNum, &afm->mAudioDataOffset);
599 assert (afm->mFileBuffer != NULL); 599 assert (afm->mFileBuffer != NULL);
600 return afm; 600 return afm;
601 } 601 }
602 602