mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-23 12:32:09 +00:00
Make s_volume cvar affect volume of S_Base_RawSamples, thanks to Jay Weisskopf for reporting. https://bugzilla.icculus.org/show_bug.cgi?id=3474
This commit is contained in:
parent
9b7543a905
commit
ff2f143882
1 changed files with 4 additions and 4 deletions
|
@ -916,7 +916,7 @@ void S_ByteSwapRawSamples( int samples, int width, int s_channels, const byte *d
|
||||||
|
|
||||||
/*
|
/*
|
||||||
============
|
============
|
||||||
S_RawSamples
|
S_Base_RawSamples
|
||||||
|
|
||||||
Music streaming
|
Music streaming
|
||||||
============
|
============
|
||||||
|
@ -937,10 +937,10 @@ void S_Base_RawSamples( int stream, int samples, int rate, int width, int s_chan
|
||||||
}
|
}
|
||||||
rawsamples = s_rawsamples[stream];
|
rawsamples = s_rawsamples[stream];
|
||||||
|
|
||||||
intVolume = 256 * volume;
|
intVolume = 256 * volume * s_volume->value;
|
||||||
|
|
||||||
if ( s_rawend[stream] < s_soundtime ) {
|
if ( s_rawend[stream] < s_soundtime ) {
|
||||||
Com_DPrintf( "S_RawSamples: resetting minimum: %i < %i\n", s_rawend[stream], s_soundtime );
|
Com_DPrintf( "S_Base_RawSamples: resetting minimum: %i < %i\n", s_rawend[stream], s_soundtime );
|
||||||
s_rawend[stream] = s_soundtime;
|
s_rawend[stream] = s_soundtime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1018,7 +1018,7 @@ void S_Base_RawSamples( int stream, int samples, int rate, int width, int s_chan
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( s_rawend[stream] > s_soundtime + MAX_RAW_SAMPLES ) {
|
if ( s_rawend[stream] > s_soundtime + MAX_RAW_SAMPLES ) {
|
||||||
Com_DPrintf( "S_RawSamples: overflowed %i > %i\n", s_rawend[stream], s_soundtime );
|
Com_DPrintf( "S_Base_RawSamples: overflowed %i > %i\n", s_rawend[stream], s_soundtime );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue