forked from len0rd/rockbox
Decrease doom's code size and some code cleanup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9690 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
95325ff72a
commit
f7872ac61b
3 changed files with 81 additions and 90 deletions
|
|
@ -62,7 +62,7 @@
|
|||
// Basically, samples from all active internal channels
|
||||
// are modifed and added, and stored in the buffer
|
||||
// that is submitted to the audio device.
|
||||
signed short mixbuffer[MIXBUFFERSIZE];
|
||||
signed short *mixbuffer=NULL;
|
||||
|
||||
typedef struct {
|
||||
// SFX id of the playing sound effect.
|
||||
|
|
@ -516,6 +516,9 @@ void I_InitSound()
|
|||
|
||||
printf( " pre-cached all sound data\n");
|
||||
|
||||
if(mixbuffer==NULL)
|
||||
mixbuffer=malloc(sizeof(short)*MIXBUFFERSIZE);
|
||||
|
||||
// Now initialize mixbuffer with zero.
|
||||
for ( i = 0; i< MIXBUFFERSIZE; i++ )
|
||||
mixbuffer[i] = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue