Make visual C++ 2003 happy
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3365
This commit is contained in:
parent
75da889c3e
commit
d261fb01fd
1 changed files with 1 additions and 1 deletions
|
@ -1293,7 +1293,7 @@ void InitTables( void ) {
|
|||
//Exponential volume table, same as the real adlib
|
||||
for ( int i = 0; i < 256; i++ ) {
|
||||
//Save them in reverse
|
||||
ExpTable[i] = (int)( 0.5 + ( pow(2, ( 255 - i) * ( 1.0 /256 ) )-1) * 1024 );
|
||||
ExpTable[i] = (int)( 0.5 + ( pow(2.0, ( 255 - i) * ( 1.0 /256 ) )-1) * 1024 );
|
||||
ExpTable[i] += 1024; //or remove the -1 oh well :)
|
||||
//Preshift to the left once so the final volume can shift to the right
|
||||
ExpTable[i] *= 2;
|
||||
|
|
Loading…
Add table
Reference in a new issue