mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: client: s_mix: always mix when not in menu, as DSP effects might produce sound even if no channels are active
This commit is contained in:
@@ -535,13 +535,11 @@ void S_PaintChannels( int endtime )
|
||||
room_channels += S_MixRawChannels( end );
|
||||
|
||||
// now process DSP and mix result into paintbuffer
|
||||
if( room_channels > 0 )
|
||||
{
|
||||
if( cls.key_dest != key_menu )
|
||||
SX_RoomFX( roombuffer, num_samples );
|
||||
if( cls.key_dest != key_menu )
|
||||
SX_RoomFX( roombuffer, num_samples );
|
||||
|
||||
if( room_channels > 0 || cls.key_dest != key_menu )
|
||||
S_MixBufferWithGain( paintbuffer, roombuffer, num_samples, gain );
|
||||
}
|
||||
|
||||
// transfer out according to DMA format
|
||||
S_TransferPaintBuffer( paintbuffer, end );
|
||||
|
||||
Reference in New Issue
Block a user