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
private VLM vlm;
private Audio audio;
private volatile boolean released;
private MediaListPlayer mediaListPlayer;
......@@ -56,17 +58,21 @@ public class JVLC
{
String[] args = new String[] {};
instance = createInstance(args);
mediaList = new MediaList(this);
mediaListPlayer = new MediaListPlayer(this);
mediaListPlayer.setMediaList(mediaList);
init();
}
public JVLC(String[] args)
{
instance = createInstance(args);
init();
}
private void init()
{
mediaList = new MediaList(this);
mediaListPlayer = new MediaListPlayer(this);
mediaListPlayer.setMediaList(mediaList);
audio = new Audio(this);
}
public JVLC(String args)
......@@ -194,4 +200,12 @@ public class JVLC
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