ProjectRenderer: fixed bug introduced by 1b91b599b...

There's been a missing evaluation of _os.depth in the 2nd ternary
operator which caused depth of filetype always be 24 bit even if 16 bit
was selected.
This commit is contained in:
Tobias Doerffel
2009-04-06 00:20:12 +02:00
parent ff010da5ee
commit f42fee37c3

View File

@@ -84,7 +84,8 @@ projectRenderer::projectRenderer( const mixer::qualitySettings & _qs,
_os.samplerate, DEFAULT_CHANNELS, success_ful,
_out_file, _os.vbr,
_os.bitrate, _os.bitrate - 64, _os.bitrate + 64,
_os.depth == Depth_32Bit ? 32 : (Depth_24Bit ? 24 : 16),
_os.depth == Depth_32Bit ? 32 :
( _os.depth == Depth_24Bit ? 24 : 16 ),
engine::getMixer() );
if( success_ful == FALSE )
{