- private LibVlc libvlc = LibVlc.SYNC_INSTANCE;
-
- private LibVlcInstance libvlcInstance;
-
- private String mrl = this.getClass().getResource("/raffa_voice.ogg").getPath();
-
- @Before
- public void testSetup() throws Exception
- {
- libvlc_exception_t exception = new libvlc_exception_t();
- libvlcInstance = libvlc.libvlc_new(0, new String[]{"-A","file","--audiofile-file=" + File.createTempFile("jvlc", ".wav").getAbsolutePath()}, exception);
- // use the following line to use your audio card.
- // libvlcInstance = libvlc.libvlc_new(0, new String[]{}, exception);
- }
-
- @After
- public void tearDown()
- {
- libvlc.libvlc_release(libvlcInstance);
- }