Author: muggenhor
Date: Mon Feb 19 22:52:27 2007
New Revision: 792
URL: http://svn.gna.org/viewcvs/warzone?rev=792&view=rev
Log:
* removed some redundant code from src/data.c:
- the function dataAudioLoad first checked whether the audio system is
disabled and if it is sets return buffer (*ppData) to NULL, even though this
functionality is already performed by the function it calls
(audio_LoadTrackFromBuffer)
- this is similar for dataAudioRelease, additionally I moved the (low-level)
call FREE(psTrack) to lib/sound/track.c which is also the file in which it gets
malloc'ed
* while at it I directly changed sound_ReleaseTrack from returning BOOL to
void since its return value was meaningless anyway (would always be TRUE no
matter what), not to mention it was completely ignored by its only caller
(dataAudioRelease)
Modified:
trunk/lib/sound/track.c
trunk/lib/sound/track.h
trunk/src/data.c
_______________________________________________
Warzone-commits mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-commits