/* Audio box */
IBOutlet NSTextField * fAudLang1Field;
IBOutlet NSPopUpButton * fAudLang1PopUp;
+ IBOutlet NSButton * fAudLang1Surround;
IBOutlet NSTextField * fAudLang2Field;
IBOutlet NSPopUpButton * fAudLang2PopUp;
IBOutlet NSTextField * fAudRateField;
- (IBAction) FormatPopUpChanged: (id) sender;
- (IBAction) CodecsPopUpChanged: (id) sender;
- (IBAction) EncoderPopUpChanged: (id) sender;
+- (IBAction) LanguagePopUpChanged: (id) sender;
+
- (IBAction) BrowseFile: (id) sender;
- (void) BrowseFileDone: (NSSavePanel *) sheet
returnCode: (int) returnCode contextInfo: (void *) contextInfo;
Lets Deprecate Baseline Level 1.3*/
job->h264_level = 30;
job->mux = HB_MUX_IPOD;
- /* move sanity check for iPod Encoding here */
+ /* move sanity check for iPod Encoding here */
job->pixel_ratio = 0 ;
}
}
+
+- (IBAction) LanguagePopUpChanged: (id) sender
+{
+ /* Original Call from langpopups which then called prepare job*/
+ /*Note: fAudLang2PopUp is still connected to original action */
+ /* [self CalculateBitrate: sender]; */
+ /* Set Audio tracks based on language selected (taken from prepare job)*/
+ hb_job_t * job = fTitle->job;
+ job->audios[0] = [fAudLang1PopUp indexOfSelectedItem] - 1;
+ job->audios[1] = [fAudLang2PopUp indexOfSelectedItem] - 1;
+ job->audios[2] = -1;
+
+ /* We set the checkbox "fAudLang1Surround" here using: */
+ /* [fAudLang1Surround setState: 0] Depending on variables */
+
+
+
+
+}
+
+
/* Get and Display Current Pic Settings in main window */
- (IBAction) CalculatePictureSizing: (id) sender
{
EnableQueue = id;
EncoderPopUpChanged = id;
FormatPopUpChanged = id;
+ LanguagePopUpChanged = id;
OpenForums = id;
OpenHomepage = id;
Pause = id;
fAudBitratePopUp = NSPopUpButton;
fAudLang1Field = NSTextField;
fAudLang1PopUp = NSPopUpButton;
+ fAudLang1Surround = NSButton;
fAudLang2Field = NSTextField;
fAudLang2PopUp = NSPopUpButton;
fAudRateField = NSTextField;
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
- <string>74 141 555 411 0 0 1440 878 </string>
+ <string>9 63 555 411 0 0 1440 878 </string>
<key>IBEditorPositions</key>
<dict>
<key>29</key>
</array>
<key>IBOpenObjects</key>
<array>
- <integer>1438</integer>
+ <integer>21</integer>
</array>
<key>IBSystem Version</key>
<string>8L127</string>