@@ -27,9 +27,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
27
static portable_samplepair_t paintbuffer [PAINTBUFFER_SIZE ];
28
28
static int snd_vol ;
29
29
30
- int * snd_p ;
30
+ int * snd_p ;
31
31
int snd_linear_count ;
32
- short * snd_out ;
32
+ short * snd_out ;
33
33
34
34
#if !id386 // if configured not to use asm
35
35
@@ -378,7 +378,7 @@ static void S_PaintChannelFrom16( channel_t *ch, const sfx_t *sc, int count, int
378
378
S_PaintChannelFrom16_scalar ( ch , sc , count , sampleOffset , bufferOffset );
379
379
}
380
380
381
- void S_PaintChannelFromWavelet ( channel_t * ch , sfx_t * sc , int count , int sampleOffset , int bufferOffset )
381
+ static void S_PaintChannelFromWavelet ( channel_t * ch , sfx_t * sc , int count , int sampleOffset , int bufferOffset )
382
382
{
383
383
int data ;
384
384
int leftvol , rightvol ;
@@ -426,7 +426,7 @@ void S_PaintChannelFromWavelet( channel_t *ch, sfx_t *sc, int count, int sampleO
426
426
}
427
427
}
428
428
429
- void S_PaintChannelFromADPCM ( channel_t * ch , sfx_t * sc , int count , int sampleOffset , int bufferOffset )
429
+ static void S_PaintChannelFromADPCM ( channel_t * ch , sfx_t * sc , int count , int sampleOffset , int bufferOffset )
430
430
{
431
431
int data ;
432
432
int leftvol , rightvol ;
@@ -479,7 +479,7 @@ void S_PaintChannelFromADPCM( channel_t *ch, sfx_t *sc, int count, int sampleOff
479
479
}
480
480
}
481
481
482
- void S_PaintChannelFromMuLaw ( channel_t * ch , sfx_t * sc , int count , int sampleOffset , int bufferOffset )
482
+ static void S_PaintChannelFromMuLaw ( channel_t * ch , sfx_t * sc , int count , int sampleOffset , int bufferOffset )
483
483
{
484
484
int data ;
485
485
int leftvol , rightvol ;
@@ -584,8 +584,6 @@ void S_PaintChannels( int endtime )
584
584
// clear the paint buffer and mix any raw samples...
585
585
Com_Memset (paintbuffer , 0 , sizeof (paintbuffer ));
586
586
587
- #if 1
588
-
589
587
for (stream = 0 ; stream < MAX_RAW_STREAMS ; stream ++ )
590
588
{
591
589
if ( s_rawend [stream ] >= s_paintedtime )
@@ -603,23 +601,6 @@ void S_PaintChannels( int endtime )
603
601
}
604
602
}
605
603
606
- #else
607
-
608
- if ( s_rawend >= s_paintedtime )
609
- {
610
- // copy from the streaming sound source
611
- const int stop = (end < s_rawend ) ? end : s_rawend ;
612
-
613
- for ( i = s_paintedtime ; i < stop ; i ++ )
614
- {
615
- const int s = i & (MAX_RAW_SAMPLES - 1 );
616
- paintbuffer [i - s_paintedtime ].left += s_rawsamples [s ].left ;
617
- paintbuffer [i - s_paintedtime ].right += s_rawsamples [s ].right ;
618
- }
619
- }
620
-
621
- #endif
622
-
623
604
// paint in the channels.
624
605
ch = s_channels ;
625
606
0 commit comments