-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.java
More file actions
36 lines (33 loc) · 951 Bytes
/
App.java
File metadata and controls
36 lines (33 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package ovh.stranck.javaTimecode;
import javax.sound.sampled.LineUnavailableException;
import javax.sound.sampled.Mixer;
import ovh.stranck.javaTimecode.ltc.LTCGenerator;
public class App {
public static void main(String[] args) throws LineUnavailableException {
Mixer m = Utils.getMixer("*PnP*");
System.out.println(m.getMixerInfo());
LTCGenerator ltc = new LTCGenerator(m, 48000);
TimecodePlayer tp = ltc.getTimecodePlayer();
Timecode tc = ltc.getPacket();
System.out.println("starting");
ltc.start();
//Wait.wait(1000);
//tc.setHours(1);
//Wait.wait(5000);
tp.setSpeed(1);
Wait.wait(5000);
tp.setSpeed(2);
Wait.wait(5000);
tp.setSpeed(1);
Wait.wait(5000);
//System.out.println("stopping");
//ltc.stop();
//Wait.wait(10000);
/*System.out.println("starting");
ltc.start();
Wait.wait(10000);
System.out.println("stopping");
ltc.stop();
Wait.wait(10000);*/
}
}