Commit c6c3b26a authored by Filippo Carone's avatar Filippo Carone

jvlc: audio is an instance property

parent f810fad0
...@@ -48,6 +48,8 @@ public class JVLC ...@@ -48,6 +48,8 @@ public class JVLC
private VLM vlm; private VLM vlm;
private Audio audio;
private volatile boolean released; private volatile boolean released;
private MediaListPlayer mediaListPlayer; private MediaListPlayer mediaListPlayer;
...@@ -56,17 +58,21 @@ public class JVLC ...@@ -56,17 +58,21 @@ public class JVLC
{ {
String[] args = new String[] {}; String[] args = new String[] {};
instance = createInstance(args); instance = createInstance(args);
mediaList = new MediaList(this); init();
mediaListPlayer = new MediaListPlayer(this);
mediaListPlayer.setMediaList(mediaList);
} }
public JVLC(String[] args) public JVLC(String[] args)
{ {
instance = createInstance(args); instance = createInstance(args);
init();
}
private void init()
{
mediaList = new MediaList(this); mediaList = new MediaList(this);
mediaListPlayer = new MediaListPlayer(this); mediaListPlayer = new MediaListPlayer(this);
mediaListPlayer.setMediaList(mediaList); mediaListPlayer.setMediaList(mediaList);
audio = new Audio(this);
} }
public JVLC(String args) public JVLC(String args)
...@@ -193,5 +199,13 @@ public class JVLC ...@@ -193,5 +199,13 @@ public class JVLC
{ {
return mediaListPlayer; return mediaListPlayer;
} }
/**
* @return
*/
public Audio getAudio()
{
return audio;
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment