Browse Source

engine: restore optional upscaling depending on SOUND_DMA_SPEED value :)

pull/2/head
Alibek Omarov 3 years ago
parent
commit
9e4e9cab04
  1. 4
      engine/client/s_mix.c

4
engine/client/s_mix.c

@ -988,6 +988,7 @@ void MIX_UpsampleAllPaintbuffers( int end, int count ) @@ -988,6 +988,7 @@ void MIX_UpsampleAllPaintbuffers( int end, int count )
// mix 11khz sounds:
MIX_MixChannelsToPaintbuffer( end, SOUND_11k, SOUND_11k );
#if SOUND_DMA_SPEED >= SOUND_22k
// upsample all 11khz buffers by 2x
// only upsample roombuffer if dsp fx are on KDB: perf
MIX_SetCurrentPaintbuffer( IROOMBUFFER ); // operates on MixUpSample
@ -995,7 +996,9 @@ void MIX_UpsampleAllPaintbuffers( int end, int count ) @@ -995,7 +996,9 @@ void MIX_UpsampleAllPaintbuffers( int end, int count )
// mix 22khz sounds:
MIX_MixChannelsToPaintbuffer( end, SOUND_22k, SOUND_22k );
#endif
#if SOUND_DMA_SPEED >= SOUND_44k
// upsample all 22khz buffers by 2x
// only upsample roombuffer if dsp fx are on KDB: perf
MIX_SetCurrentPaintbuffer( IROOMBUFFER );
@ -1003,6 +1006,7 @@ void MIX_UpsampleAllPaintbuffers( int end, int count ) @@ -1003,6 +1006,7 @@ void MIX_UpsampleAllPaintbuffers( int end, int count )
// mix all 44khz sounds to all active paintbuffers
MIX_MixChannelsToPaintbuffer( end, SOUND_44k, SOUND_DMA_SPEED );
#endif
// mix raw samples from the video streams
MIX_SetCurrentPaintbuffer( IROOMBUFFER );

Loading…
Cancel
Save