mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-30 16:54:29 +00: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 11khz sounds:
|
||||||
MIX_MixChannelsToPaintbuffer( end, SOUND_11k, SOUND_11k );
|
MIX_MixChannelsToPaintbuffer( end, SOUND_11k, SOUND_11k );
|
||||||
|
|
||||||
|
#if SOUND_DMA_SPEED >= SOUND_22k
|
||||||
// upsample all 11khz buffers by 2x
|
// upsample all 11khz buffers by 2x
|
||||||
// only upsample roombuffer if dsp fx are on KDB: perf
|
// only upsample roombuffer if dsp fx are on KDB: perf
|
||||||
MIX_SetCurrentPaintbuffer( IROOMBUFFER ); // operates on MixUpSample
|
MIX_SetCurrentPaintbuffer( IROOMBUFFER ); // operates on MixUpSample
|
||||||
@ -995,7 +996,9 @@ void MIX_UpsampleAllPaintbuffers( int end, int count )
|
|||||||
|
|
||||||
// mix 22khz sounds:
|
// mix 22khz sounds:
|
||||||
MIX_MixChannelsToPaintbuffer( end, SOUND_22k, SOUND_22k );
|
MIX_MixChannelsToPaintbuffer( end, SOUND_22k, SOUND_22k );
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if SOUND_DMA_SPEED >= SOUND_44k
|
||||||
// upsample all 22khz buffers by 2x
|
// upsample all 22khz buffers by 2x
|
||||||
// only upsample roombuffer if dsp fx are on KDB: perf
|
// only upsample roombuffer if dsp fx are on KDB: perf
|
||||||
MIX_SetCurrentPaintbuffer( IROOMBUFFER );
|
MIX_SetCurrentPaintbuffer( IROOMBUFFER );
|
||||||
@ -1003,6 +1006,7 @@ void MIX_UpsampleAllPaintbuffers( int end, int count )
|
|||||||
|
|
||||||
// mix all 44khz sounds to all active paintbuffers
|
// mix all 44khz sounds to all active paintbuffers
|
||||||
MIX_MixChannelsToPaintbuffer( end, SOUND_44k, SOUND_DMA_SPEED );
|
MIX_MixChannelsToPaintbuffer( end, SOUND_44k, SOUND_DMA_SPEED );
|
||||||
|
#endif
|
||||||
|
|
||||||
// mix raw samples from the video streams
|
// mix raw samples from the video streams
|
||||||
MIX_SetCurrentPaintbuffer( IROOMBUFFER );
|
MIX_SetCurrentPaintbuffer( IROOMBUFFER );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user