Codebase list xjadeo / 7597d13
Imported Upstream version 0.4.13 Alessio Treglia 13 years ago
13 changed file(s) with 274 addition(s) and 88 deletion(s). Raw diff Collapse all Expand all
238238 /* #undef TTFFONTFILE */
239239
240240 /* Version number of package */
241 #define VERSION "0.4.12"
241 #define VERSION "0.4.13"
242242
243243 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
244244 significant byte first (like Motorola and SPARC, unlike Intel). */
25472547
25482548 VERSION_MAJOR=0
25492549 VERSION_MINOR=4
2550 VERSION_SUB=12
2550 VERSION_SUB=13
25512551
25522552 am__api_version='1.11'
25532553
62546254 FOUND_L_PORTMIDI=yes
62556255 fi
62566256
6257 fi
6258 if test "x$FOUND_H_PORTMIDI$FOUND_L_PORTMIDI" = "xyesyes"; then
62576259 MIDI_LIBS="-lportmidi"
62586260 fi
62596261
77
88 VERSION_MAJOR=0
99 VERSION_MINOR=4
10 VERSION_SUB=12
10 VERSION_SUB=13
1111
1212 dnl Every other copy of the package version number gets its value from here
1313 AM_INIT_AUTOMAKE(xjadeo, [${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_SUB}])
196196 if test "x$PORTMIDI" != "xno" -a -z "$portmidisrc" ; then
197197 AC_CHECK_HEADERS(portmidi.h porttime.h , [FOUND_H_PORTMIDI=yes])
198198 AC_CHECK_LIB([portmidi], [Pm_CountDevices], [FOUND_L_PORTMIDI=yes])
199 fi
200 if test "x$FOUND_H_PORTMIDI$FOUND_L_PORTMIDI" = "xyesyes"; then
199201 MIDI_LIBS="-lportmidi"
200202 fi
201203
5050 #
5151
5252 # -m : specify MIDI port to read from.
53 # with alsa-midi this is a string alike "24,0" or "hw:2,0,0"
54 # for port-midi use an integer value of the midi port eg. 2
55 # "-1" autoconnects to the first avail. input-port with the
56 # portmidi driver.
57 #midiid=<port>
58 ;midismpte=-1
53 # jack-midi: specify midi-port name to connect to or "" to not auto-connect.
54 # alsa-seq: specify id to connect to. (-1: none) eg. -m ardour or -m 80
55 # portmidi: numeric-id; -1: autodetect, > -1 specifies a (input) midi port.
56 # use '-v -m -1' to list midi-ports.
57 # alsa-raw: specify device-name eg. -m hw:1,0 or -m 1
58 # 'xjadeo -h' shows more information, 'xjadeo -V' lists available drivers.
59 ;mididriver=alsa-sequencer
60 ;midiid=-1
5961
60 # -C : use MTC quarter frames for
61 # more accurate sync. this is generally
62 # a good idea, however it taxes performance.
62 # -c : don't use MTC quarter frames for
63 # more accurate sync.
6364 #midiclk=[yes|no]
6465 ;midiclk=no
6566
77 <rect>
88 <x>0</x>
99 <y>0</y>
10 <width>347</width>
10 <width>300</width>
1111 <height>120</height>
1212 </rect>
1313 </property>
4343 <cstring>textLabel2</cstring>
4444 </property>
4545 <property name="text">
46 <string>FPS</string>
46 <string>screen updates per sec.</string>
4747 </property>
4848 </widget>
4949 <widget class="QSpinBox">
8282 <cstring>textLabel1</cstring>
8383 </property>
8484 <property name="text">
85 <string>Frame offset</string>
85 <string>time offset in video-frames:</string>
8686 </property>
8787 </widget>
8888 <widget class="QSpinBox">
109109 <property name="spacing">
110110 <number>0</number>
111111 </property>
112 <spacer>
113 <property name="name">
114 <cstring>spacer4</cstring>
115 </property>
116 <property name="orientation">
117 <enum>Horizontal</enum>
118 </property>
119 <property name="sizeType">
120 <enum>Expanding</enum>
121 </property>
122 <property name="sizeHint">
123 <size>
124 <width>2</width>
125 <height>6</height>
126 </size>
127 </property>
128 </spacer>
112129 <widget class="QProgressBar">
113130 <property name="name">
114131 <cstring>progressBar</cstring>
115132 </property>
116133 <property name="sizePolicy">
117134 <sizepolicy>
118 <hsizetype>3</hsizetype>
135 <hsizetype>7</hsizetype>
119136 <vsizetype>0</vsizetype>
120137 <horstretch>5</horstretch>
121138 <verstretch>0</verstretch>
152169 </property>
153170 <property name="sizeHint">
154171 <size>
155 <width>1</width>
172 <width>3</width>
156173 <height>6</height>
157174 </size>
158175 </property>
235252 </item>
236253 <item text="&amp;Sync" name="Sync">
237254 <action name="syncJackAction"/>
238 <action name="syncMTCAction"/>
255 <action name="syncMTCJackAction"/>
256 <action name="syncMTCAlsaAction"/>
239257 <action name="syncOffAction"/>
240258 </item>
241259 <item text="&amp;Zoom" name="Zoom">
247265 <item text="&amp;OSD" name="OSD">
248266 <action name="osdFontAction"/>
249267 <action name="osdFrameAction"/>
250 <action name="osdSMTPEAction"/>
268 <action name="osdSMPTEAction"/>
269 <action name="osdBoxAction"/>
251270 </item>
252271 <item text="&amp;Seek" name="Seek">
253272 <action name="seekany_frameAction"/>
335354 </action>
336355 <action>
337356 <property name="name">
338 <cstring>syncMTCAction</cstring>
357 <cstring>syncMTCJackAction</cstring>
339358 </property>
340359 <property name="toggleAction">
341360 <bool>true</bool>
342361 </property>
343362 <property name="text">
344 <string>MTC</string>
363 <string>MTC (JACK MIDI)</string>
345364 </property>
346365 <property name="menuText">
347 <string>MTC</string>
366 <string>MTC (JACK MIDI)</string>
367 </property>
368 </action>
369 <action>
370 <property name="name">
371 <cstring>syncMTCAlsaAction</cstring>
372 </property>
373 <property name="toggleAction">
374 <bool>true</bool>
375 </property>
376 <property name="text">
377 <string>MTC (ALSA SEQ)</string>
378 </property>
379 <property name="menuText">
380 <string>MTC (ALSA SEQ)</string>
348381 </property>
349382 </action>
350383 <action>
436469 </action>
437470 <action>
438471 <property name="name">
439 <cstring>osdSMTPEAction</cstring>
472 <cstring>osdSMPTEAction</cstring>
440473 </property>
441474 <property name="toggleAction">
442475 <bool>true</bool>
443476 </property>
444477 <property name="text">
445 <string>SMTPE</string>
446 </property>
447 <property name="menuText">
448 <string>SMTPE</string>
478 <string>SMPTE</string>
479 </property>
480 <property name="menuText">
481 <string>SMPTE</string>
482 </property>
483 </action>
484 <action>
485 <property name="name">
486 <cstring>osdBoxAction</cstring>
487 </property>
488 <property name="toggleAction">
489 <bool>true</bool>
490 </property>
491 <property name="text">
492 <string>Box</string>
493 </property>
494 <property name="menuText">
495 <string>Box</string>
449496 </property>
450497 </action>
451498 <action>
588635 <slot>syncOff()</slot>
589636 </connection>
590637 <connection>
591 <sender>syncMTCAction</sender>
592 <signal>activated()</signal>
593 <receiver>MainWindow</receiver>
594 <slot>syncMTC()</slot>
638 <sender>syncMTCAlsaAction</sender>
639 <signal>activated()</signal>
640 <receiver>MainWindow</receiver>
641 <slot>syncMTCalsa()</slot>
642 </connection>
643 <connection>
644 <sender>syncMTCJackAction</sender>
645 <signal>activated()</signal>
646 <receiver>MainWindow</receiver>
647 <slot>syncMTCjack()</slot>
595648 </connection>
596649 <connection>
597650 <sender>syncJackAction</sender>
612665 <slot>setFPS(const QString&amp;)</slot>
613666 </connection>
614667 <connection>
615 <sender>osdSMTPEAction</sender>
668 <sender>osdBoxAction</sender>
669 <signal>toggled(bool)</signal>
670 <receiver>MainWindow</receiver>
671 <slot>osdBoxToggled(bool)</slot>
672 </connection>
673 <connection>
674 <sender>osdSMPTEAction</sender>
616675 <signal>toggled(bool)</signal>
617676 <receiver>MainWindow</receiver>
618677 <slot>osdSMPTEToggled(bool)</slot>
684743 <slot>zoom200()</slot>
685744 <slot>zoomFullScreen()</slot>
686745 <slot>syncJack()</slot>
687 <slot>syncMTC()</slot>
746 <slot>syncMTCjack()</slot>
747 <slot>syncMTCalsa()</slot>
688748 <slot>syncOff()</slot>
689749 <slot>setOffset( const QString &amp; )</slot>
690750 <slot>fileExit()</slot>
691751 <slot>osdFrameToggled( bool )</slot>
692752 <slot>osdSMPTEToggled( bool )</slot>
753 <slot>osdBoxToggled( bool )</slot>
693754 <slot>osdFont()</slot>
694755 <slot>seekBarChanged( int )</slot>
695756 <slot>filePreferences()</slot>
4545 <cstring>textLabel1</cstring>
4646 </property>
4747 <property name="text">
48 <string>Midi port (MTC):</string>
48 <string>Autoconnect ALSA Midi port (MTC):</string>
4949 </property>
5050 </widget>
5151 <spacer>
6767 </spacer>
6868 <widget class="QLineEdit">
6969 <property name="name">
70 <cstring>prefLineMidi</cstring>
70 <cstring>prefLineAlsaMidi</cstring>
7171 </property>
7272 <property name="sizePolicy">
7373 <sizepolicy>
9191 </widget>
9292 <widget class="QLayoutWidget">
9393 <property name="name">
94 <cstring>layout10</cstring>
94 <cstring>layout11</cstring>
9595 </property>
9696 <hbox>
9797 <property name="name">
9999 </property>
100100 <widget class="QLabel">
101101 <property name="name">
102 <cstring>textLabel1_2</cstring>
102 <cstring>textLabel3</cstring>
103103 </property>
104104 <property name="text">
105 <string>xjadeo/xjremote executable:</string>
105 <string>Autoconnect JACK Midi port (MTC):</string>
106106 </property>
107107 </widget>
108108 <spacer>
109109 <property name="name">
110 <cstring>spacer16_2</cstring>
110 <cstring>spacer9</cstring>
111111 </property>
112112 <property name="orientation">
113113 <enum>Horizontal</enum>
117117 </property>
118118 <property name="sizeHint">
119119 <size>
120 <width>10</width>
120 <width>0</width>
121121 <height>20</height>
122122 </size>
123123 </property>
124124 </spacer>
125125 <widget class="QLineEdit">
126126 <property name="name">
127 <cstring>prefLineXjadeo</cstring>
127 <cstring>prefLineJackMidi</cstring>
128128 </property>
129129 <property name="sizePolicy">
130130 <sizepolicy>
140140 <height>0</height>
141141 </size>
142142 </property>
143 <property name="maxLength">
144 <number>64</number>
145 </property>
143146 </widget>
144147 </hbox>
145148 </widget>
146149 <widget class="QLayoutWidget">
147150 <property name="name">
148 <cstring>layout13</cstring>
151 <cstring>layout10</cstring>
149152 </property>
150153 <hbox>
151154 <property name="name">
153156 </property>
154157 <widget class="QLabel">
155158 <property name="name">
159 <cstring>textLabel1_2</cstring>
160 </property>
161 <property name="text">
162 <string>xjadeo/xjremote executable:</string>
163 </property>
164 </widget>
165 <spacer>
166 <property name="name">
167 <cstring>spacer16_2</cstring>
168 </property>
169 <property name="orientation">
170 <enum>Horizontal</enum>
171 </property>
172 <property name="sizeType">
173 <enum>Expanding</enum>
174 </property>
175 <property name="sizeHint">
176 <size>
177 <width>10</width>
178 <height>20</height>
179 </size>
180 </property>
181 </spacer>
182 <widget class="QLineEdit">
183 <property name="name">
184 <cstring>prefLineXjadeo</cstring>
185 </property>
186 <property name="sizePolicy">
187 <sizepolicy>
188 <hsizetype>7</hsizetype>
189 <vsizetype>0</vsizetype>
190 <horstretch>1</horstretch>
191 <verstretch>0</verstretch>
192 </sizepolicy>
193 </property>
194 <property name="minimumSize">
195 <size>
196 <width>160</width>
197 <height>0</height>
198 </size>
199 </property>
200 </widget>
201 </hbox>
202 </widget>
203 <widget class="QLayoutWidget">
204 <property name="name">
205 <cstring>layout13</cstring>
206 </property>
207 <hbox>
208 <property name="name">
209 <cstring>unnamed</cstring>
210 </property>
211 <widget class="QLabel">
212 <property name="name">
156213 <cstring>textLabel1_3</cstring>
157214 </property>
158215 <property name="text">
171228 </property>
172229 <property name="sizeHint">
173230 <size>
174 <width>81</width>
231 <width>57</width>
175232 <height>21</height>
176233 </size>
177234 </property>
5757 if(m_recentFiles.count())
5858 updateRecentFilesMenu();
5959
60 m_midiport = m_settings.readEntry("MIDI port");
60 m_alsamidiport = m_settings.readEntry("ALSA MIDI port");
61 m_jackmidiport = m_settings.readEntry("JACK MIDI port");
6162 m_importdir = m_settings.readEntry("Import Directory");
6263 m_importdestination = m_settings.readBoolEntry("Import Destination");
6364 m_importcodec = m_settings.readEntry("Import Codec");
6768 m_xjinfopath = m_settings.readEntry("XJINFO Path");
6869
6970 // TODO: detect portmidi / alsamidi default. 'midi library'
70 if (m_midiport.isEmpty()) m_midiport = QString("24");
71 if (m_alsamidiport.isEmpty()) m_alsamidiport = QString("24");
72 if (m_jackmidiport.isEmpty()) m_jackmidiport = QString("");
7173 if (m_importcodec.isEmpty()) m_importcodec = QString("mpeg4");
7274 if (m_mencoderpath.isEmpty()) m_mencoderpath = QString("mencoder");
7375 if (m_xjadeopath.isEmpty()) m_xjadeopath = QString(BINDIR "xjremote");
8890 xjadeo.writeToStdin(QString("get framerate\n"));
8991 xjadeo.writeToStdin(QString("get offset\n"));
9092 xjadeo.writeToStdin(QString("get osdcfg\n"));
93 xjadeo.writeToStdin(QString("midi driver\n"));
9194 xjadeo.writeToStdin(QString("get syncsource\n"));
9295 xjadeo.writeToStdin(QString("get position\n"));
9396 xjadeo.writeToStdin(QString("get seekmode\n"));
158161 for(int i = 0; i < int (m_recentFiles.count()); ++i)
159162 m_settings.writeEntry("File" + QString::number(i + 1), m_recentFiles[i]);
160163 m_settings.writeEntry("OSD font", m_osdfont);
161 m_settings.writeEntry("MIDI port", m_midiport);
164 m_settings.writeEntry("JACK MIDI port", m_jackmidiport);
165 m_settings.writeEntry("ALSA MIDI port", m_alsamidiport);
162166 m_settings.writeEntry("Import Codec", m_importcodec);
163167 m_settings.writeEntry("Import Directory", m_importdir);
164168 m_settings.writeEntry("Import Destination", m_importdestination);
206210 PrefDialog *pdialog = new PrefDialog::PrefDialog(this);
207211 if (pdialog) {
208212 /* set values */
209 pdialog->prefLineMidi->setText(m_midiport);
213 pdialog->prefLineJackMidi->setText(m_jackmidiport);
214 pdialog->prefLineAlsaMidi->setText(m_alsamidiport);
210215 pdialog->prefLineXjadeo->setText(m_xjadeopath);
211216 pdialog->prefLineXjinfo->setText(m_xjinfopath);
212217 pdialog->prefLineMencoder->setText(m_mencoderpath);
228233 m_xjadeopath = pdialog->prefLineXjadeo->text();
229234 if (!pdialog->prefLineXjinfo->text().isEmpty())
230235 m_xjinfopath = pdialog->prefLineXjinfo->text();
231 if (!pdialog->prefLineMidi->text().isEmpty())
232 m_midiport = pdialog->prefLineMidi->text();
236 if (!pdialog->prefLineAlsaMidi->text().isEmpty())
237 m_alsamidiport = pdialog->prefLineAlsaMidi->text();
238 if (!pdialog->prefLineJackMidi->text().isEmpty())
239 m_jackmidiport = pdialog->prefLineJackMidi->text();
233240 if (pdialog->prefDirCheckBox->isOn() && !pdialog->destDirLineEdit->text().isEmpty())
234241 m_importdir = pdialog->destDirLineEdit->text();
235242 /* and save */
339346 {
340347 xjadeo.writeToStdin(QString("midi disconnect\n"));
341348 xjadeo.writeToStdin(QString("jack connect\n"));
349 xjadeo.writeToStdin(QString("midi driver\n"));
342350 xjadeo.writeToStdin(QString("get syncsource\n"));
343351 }
344352
345 void QJadeo::syncMTC()
346 {
347 xjadeo.writeToStdin(QString("jack disconnect\n"));
348 //xjadeo.writeToStdin(QString("midi reconnect\n"));
349 xjadeo.writeToStdin(QString("midi connect "+ m_midiport +"\n"));
350 xjadeo.writeToStdin(QString("get syncsource\n"));
351 }
352
353 void QJadeo::syncOff()
353 void QJadeo::syncMTCalsa()
354354 {
355355 xjadeo.writeToStdin(QString("jack disconnect\n"));
356356 xjadeo.writeToStdin(QString("midi disconnect\n"));
357 xjadeo.writeToStdin(QString("midi driver alsa-seq\n"));
358 xjadeo.writeToStdin(QString("midi connect "+ m_alsamidiport +"\n"));
359 xjadeo.writeToStdin(QString("midi driver\n"));
360 xjadeo.writeToStdin(QString("get syncsource\n"));
361 }
362
363 void QJadeo::syncMTCjack()
364 {
365 xjadeo.writeToStdin(QString("jack disconnect\n"));
366 xjadeo.writeToStdin(QString("midi disconnect\n"));
367 xjadeo.writeToStdin(QString("midi driver jack\n"));
368 xjadeo.writeToStdin(QString("midi connect "+ m_jackmidiport +"\n"));
369 xjadeo.writeToStdin(QString("midi driver\n"));
370 xjadeo.writeToStdin(QString("get syncsource\n"));
371 }
372
373 void QJadeo::syncOff()
374 {
375 xjadeo.writeToStdin(QString("jack disconnect\n"));
376 xjadeo.writeToStdin(QString("midi disconnect\n"));
377 xjadeo.writeToStdin(QString("midi driver\n"));
357378 xjadeo.writeToStdin(QString("get syncsource\n"));
358379 }
359380
381402 xjadeo.writeToStdin(QString("osd smpte 100\n"));
382403 else
383404 xjadeo.writeToStdin(QString("osd smpte -1\n"));
405 }
406
407 void QJadeo::osdBoxToggled(bool value)
408 {
409 if(value)
410 xjadeo.writeToStdin(QString("osd box\n"));
411 else
412 xjadeo.writeToStdin(QString("osd nobox\n"));
384413 }
385414
386415 void QJadeo::seekBarChanged( int value )
473502 Seek->setItemChecked(Seek->idAt(0),TRUE);
474503 }
475504 }
505 else if(name == "mididrv")
506 {
507 m_mididrv = 0;
508 if (value == "JACK-MIDI") m_mididrv = 1;
509 }
476510 else if(name == "syncsource")
477511 {
478512 Sync->setItemChecked(Sync->idAt(0),FALSE);
479513 Sync->setItemChecked(Sync->idAt(1),FALSE);
480514 Sync->setItemChecked(Sync->idAt(2),FALSE);
515 Sync->setItemChecked(Sync->idAt(3),FALSE);
481516
482517 if (value.toInt()==0) { // off
483518 seekBar->setEnabled(TRUE);
484 Sync->setItemChecked(Sync->idAt(2),TRUE);
519 Sync->setItemChecked(Sync->idAt(3),TRUE);
485520 } else if (value.toInt()==2) { // MIDI
486521 seekBar->setEnabled(FALSE);
487 Sync->setItemChecked(Sync->idAt(1),TRUE);
522 if (m_mididrv == 1)
523 Sync->setItemChecked(Sync->idAt(1),TRUE); // JACK midi
524 else
525 Sync->setItemChecked(Sync->idAt(2),TRUE); // ALSA midi
488526 } else {
489527 seekBar->setEnabled(FALSE); //JACK
490528 Sync->setItemChecked(Sync->idAt(0),TRUE);
530568 xjadeo.writeToStdin(QString("notify frame\n"));
531569 xjadeo.writeToStdin(QString("get offset\n"));
532570 xjadeo.writeToStdin(QString("get osdcfg\n"));
571 xjadeo.writeToStdin(QString("midi driver\n"));
533572 xjadeo.writeToStdin(QString("get syncsource\n"));
534573 xjadeo.writeToStdin(QString("get position\n"));
535574 }
546585 m_frames = 0;
547586 m_offset = 0;
548587 m_framerate = 0;
588 m_mididrv = 0;
549589 xjadeo.writeToStdin("load " + filename + "\n");
550590 xjadeo.writeToStdin(QString("get filename\n"));
551591 xjadeo.writeToStdin(QString("get width\n"));
597637
598638 if(!xjadeo.start())
599639 {
600 QMessageBox::QMessageBox::critical( &w, "qjadeo","can not execute xjadeo/xjremote.","Exit", QString::null, QString::null, 0, -1);
601
602 qFatal("Could not start xjadeo executable: " + xjadeoPath);
603 qFatal("Try to set the XJREMOTE environment variable to point to xjadeo.");
640 QMessageBox::QMessageBox::critical( &w, "qjadeo","can not execute xjadeo/xjremote.","Exit", QString::null, QString::null, 0, -1);
641 //qFatal("Could not start xjadeo executable: " + xjadeoPath);
642 //qFatal("Try to set the XJREMOTE environment variable to point to xjadeo.");
643 exit(1);
604644 }
605645
606646 w.connect(&xjadeo, SIGNAL(readyReadStdout()), &w, SLOT(readFromStdout()));
2929 int m_offset;
3030 int m_framerate;
3131 QString m_osdfont;
32 QString m_midiport;
32 QString m_alsamidiport;
33 QString m_jackmidiport;
3334 QString m_importdir;
3435 bool m_importdestination;
3536 QString m_importcodec;
3637 QString m_mencoderpath;
3738 QString m_mencoderopts;
3839 QString m_xjinfopath;
40 int m_mididrv;
3941
4042 void updateRecentFilesMenu();
4143 void updateRecentFiles(const QString & filename);
5658 void zoomFullScreen();
5759
5860 void syncJack();
59 void syncMTC();
61 void syncMTCalsa();
62 void syncMTCjack();
6063 void syncOff();
6164
6265 void seekContinuously();
7275
7376 void osdFrameToggled(bool);
7477 void osdSMPTEToggled(bool);
78 void osdBoxToggled(bool);
7579 void osdFont();
7680 void seekBarChanged( int );
7781
9595 <translation>qjadeo</translation>
9696 </message>
9797 <message>
98 <source>FPS</source>
99 <translation>FPS</translation>
100 </message>
101 <message>
102 <source>Frame offset</source>
103 <translation>Décalage de trame</translation>
98 <source>screen updates per sec.</source>
99 <translation>Fréquence de rafraîchissement d'écran:</translation>
100 </message>
101 <message>
102 <source>time offset in video-frames:</source>
103 <translation>Décalage dans les trames vidéo:</translation>
104104 </message>
105105 <message>
106106 <source>&amp;File</source>
167167 <translation>Transport JACK</translation>
168168 </message>
169169 <message>
170 <source>MTC</source>
171 <translation>MTC</translation>
170 <source>MTC (ALSA SEQ)</source>
171 <translation>MTC (ALSA SEQ)</translation>
172 </message>
173 <message>
174 <source>MTC (JACK MIDI)</source>
175 <translation>MTC (JACK MIDI)</translation>
172176 </message>
173177 <message>
174178 <source>off</source>
203207 <translation>Numéro de Trame</translation>
204208 </message>
205209 <message>
206 <source>SMTPE</source>
210 <source>Box</source>
211 <translation>Cadre</translation>
212 </message>
213 <message>
214 <source>SMPTE</source>
207215 <translation>SMPTE</translation>
208216 </message>
209217 <message>
262270 <translation>Paramètres généraux</translation>
263271 </message>
264272 <message>
265 <source>Midi port (MTC):</source>
266 <translation>Port Midi (MTC):</translation>
273 <source>Autoconnect ALSA Midi port (MTC):</source>
274 <translation>Se connecter automatiquement ce port ALSA Midi (MTC):</translation>
275 </message>
276 <message>
277 <source>Autoconnect JACK Midi port (MTC):</source>
278 <translation>Se connecter automatiquement ce port JACK Midi (MTC):</translation>
267279 </message>
268280 <message>
269281 <source>xjadeo/xjremote executable:</source>
4141 extern int want_nosplash;
4242 extern int mq_en;
4343 extern int avoid_lash;
44 extern char *midi_driver;
4445
4546 #ifdef HAVE_MIDI
4647 extern char midiid[32];
9394 #ifdef HAVE_MIDI
9495 midi_clkconvert=atoi(value);
9596 #endif
97 } else if (!strncasecmp(item,"MIDIDRIVER",10)) {
98 #ifdef HAVE_MIDI
99 if (midi_driver) free(midi_driver);
100 midi_driver = strdup(value);
101 #endif
102 rv=1;
96103 } else if (!strncasecmp(item,"QUIET",7)) {
97104 YES_OK (want_quiet);
98105 } else if (!strncasecmp(item,"VERBOSE",7)) {
685685 if (midi_choose_driver(mp)>0) {
686686 remote_printf(100,"ok.");
687687 } else {
688 remote_printf(440,"choosen MIDI driver is not supported.");
688 remote_printf(440,"chosen MIDI driver is not supported.");
689689 }
690690 #else
691691 remote_printf(499,"midi not available.");
186186 #endif
187187
188188 offFrame = newFrame + ts_offset;
189
189 long curFrame = dispFrame;
190190 display_frame((int64_t)(offFrame), force_redraw);
191191
192 if ((remote_en||mq_en||ipc_queue) && ((remote_mode&1) || ((remote_mode&2)&& offFrame!=dispFrame)) ) {
192 if ((remote_en||mq_en||ipc_queue) && ((remote_mode&1) || ((remote_mode&2)&& curFrame!=dispFrame)) ) {
193193 /*call xapi_pposition ?? -> rv:200
194194 * dispFrame is the currently displayed frame
195195 * = SMPTE + offset
579579 printf("\nDEBUG: want frame=%li ", (long int) timestamp);
580580 # endif
581581
582 # if 1 // TODO -> -F <ratio>
583 timestamp*=tpf;
584 # else // THIS is eqivalent - or even better at rounding but
585 // does not work with -F <double>
586 timestamp=av_rescale_q(timestamp,c1_Q,v_stream->time_base);
587 timestamp=av_rescale_q(timestamp,c1_Q,v_stream->r_frame_rate); //< timestamp/=framerate;
588 # endif
582 if (filefps > 0) {
583 timestamp*=tpf;
584 } else {
585 // does not work with -F <double>, but it's more accurate when rounding ratios
586 timestamp=av_rescale_q(timestamp,c1_Q,v_stream->time_base);
587 timestamp=av_rescale_q(timestamp,c1_Q,v_stream->r_frame_rate); //< timestamp/=framerate;
588 }
589589
590590 # ifdef FFDEBUG
591591 printf("ts=%li ##\n", (long int) timestamp);
88 #
99 #
1010 %define name xjadeo
11 %define version 0.4.12
11 %define version 0.4.13
1212 %define release 1
1313
1414 Name: %{name}