break;\r
case AudioEncoder.ffaac:\r
low = ((channels + lfeCount) * 32);\r
- max = ((channels + lfeCount) *\r
- ((192 + (64 * ((samplerate << srShift) >= 44100 ? 1 : 0)))\r
- >> srShift));\r
+ max = ((channels + lfeCount) * ((192 + (64 * ((samplerate << srShift) >= 44100 ? 1 : 0))) >> srShift));\r
break;\r
case AudioEncoder.Lame:\r
low = 8 + (24 * (srShift < 1 ? 1 : 0) );\r
max = 64 + (96 * (srShift < 2 ? 1 : 0)) + (160 * (srShift < 1 ? 1 : 0));\r
break;\r
case AudioEncoder.Vorbis:\r
- low = (channels + lfeCount) * (14 +\r
- (8 * (srShift < 2 ? 1 : 0)) +\r
- (6 * (srShift < 1 ? 1 : 0)));\r
- max = (channels + lfeCount) * (32 +\r
- (54 * (srShift < 2 ? 1 : 0)) +\r
- (104 * (srShift < 1 ? 1 : 0)) +\r
- (50 * (samplerate >= 44100 ? 1 : 0)));\r
+ low = (channels + lfeCount) * (14 + (8 * (srShift < 2 ? 1 : 0)) + (6 * (srShift < 1 ? 1 : 0)));\r
+ max = (channels + lfeCount) * (32 + (54 * (srShift < 2 ? 1 : 0)) + (104 * (srShift < 1 ? 1 : 0)) + (50 * (samplerate >= 44100 ? 1 : 0)));\r
break;\r
case AudioEncoder.Ac3:\r
low = 224 * channels / 5;\r
- max = samplerate > 24 ? 640 : 320;\r
+ max = 640;\r
break;\r
case AudioEncoder.Ac3Passthrough:\r
case AudioEncoder.DtsPassthrough:\r
VerticalAlignment="Center"\r
FontWeight="Bold"\r
Text="Bitrate"\r
- Visibility="{Binding CanSetBitrate,\r
+ Visibility="{Binding CannotSetBitrate,\r
Converter={StaticResource boolToVisConverter},\r
ConverterParameter=true}" />\r
<ComboBox Grid.Column="5"\r
ItemsSource="{Binding TrackReference,\r
Converter={StaticResource audioBitrateConverter}}"\r
SelectedItem="{Binding Bitrate}"\r
- Visibility="{Binding CanSetBitrate,\r
+ Visibility="{Binding CannotSetBitrate,\r
Converter={StaticResource boolToVisConverter},\r
ConverterParameter=true}" />\r
\r