mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-15 13:41:33 +01:00
engine: restore optional upscaling depending on SOUND_DMA_SPEED value :)
This commit is contained in:
parent
e4ad8def0d
commit
9e4e9cab04
@ -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 )
|
||||
|
||||
// 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 )
|
||||
|
||||
// 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…
Reference in New Issue
Block a user