/* If we are extracting to AAC, and any of our soundtracks were 5.1, then enable the checkbox */
if (foundfiveoneaudio) {
[fAudLang1SurroundCheck setEnabled: YES];
+ /* Check default surround sound pref and if it is YES, lets also check the checkbox */
+ if ([[NSUserDefaults standardUserDefaults] boolForKey:@"DefaultSurroundSound"] > 0)
+ {
+ [fAudLang1SurroundCheck setState: NSOnState];
+ }
} else {
[fAudLang1SurroundCheck setEnabled: NO];
/* as well as disabling the checkbox, let's uncheck it if it is checked */
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
- <string>9 63 555 411 0 0 1440 878 </string>
+ <string>-12 -50 555 411 0 0 1440 878 </string>
<key>IBEditorPositions</key>
<dict>
<key>29</key>
</array>
<key>IBOpenObjects</key>
<array>
- <integer>21</integer>
+ <integer>1438</integer>
</array>
<key>IBSystem Version</key>
- <string>8L2127</string>
+ <string>8L127</string>
<key>IBUserGuides</key>
<dict>
<key>21</key>
NSDictionary * appDefaults;
/* Unless the user specified otherwise, default is to check
- for update fDefPicSizeAutoSetipod*/
+ for update fDefAudioSurround*/
defaults = [NSUserDefaults standardUserDefaults];
appDefaults = [NSDictionary dictionaryWithObject:@"YES"
forKey:@"CheckForUpdates"];
forKey:@"DefaultPicSizeAutoiPod"];
appDefaults = [NSDictionary dictionaryWithObject:@"NO"
forKey:@"PixelRatio"];
-
+ appDefaults = [NSDictionary dictionaryWithObject:@"NO"
+ forKey:@"DefaultSurroundSound"];
[defaults registerDefaults: appDefaults];
[fUpdateCheck setState: [defaults boolForKey:@"CheckForUpdates"] ?
NSOnState : NSOffState];
-
// Fill the languages combobox
[fdefaultlanguage removeAllItems];
/* fDefPixelRatio */
[fDefPixelRatio setState: [defaults boolForKey:@"PixelRatio"] ?
NSOnState : NSOffState];
+
+ /* fDefAudioSurround Check or uncheck according to the preferences */
+ [fDefAudioSurround setState: [defaults boolForKey:@"DefaultSurroundSound"] ?
+ NSOnState : NSOffState];
}
{
[defaults setObject:@"NO" forKey:@"PixelRatio"];
}
-
+
+
+ /* Use Surround Sound if available*/
+ if( [fDefAudioSurround state] == NSOnState )
+ {
+ [defaults setObject:@"YES" forKey:@"DefaultSurroundSound"];
+ }
+ else
+ {
+ [defaults setObject:@"NO" forKey:@"DefaultSurroundSound"];
+ }
}