#30 - WIP on the shoutcast v2 protocol

This commit is contained in:
Denny
2016-10-21 05:30:36 -04:00
parent a43ae9ce53
commit ac23aea602
16 changed files with 1016 additions and 38 deletions

View File

@@ -229,7 +229,7 @@ public class SDRTrunk implements Listener<TunerEvent>
/**
* Setup main JFrame window
*/
mTitle = getTitle();
mTitle = SystemProperties.getInstance().getApplicationName();
mMainGui.setTitle( mTitle );
mMainGui.setBounds( 100, 100, 1280, 800 );
mMainGui.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
@@ -448,32 +448,6 @@ public class SDRTrunk implements Listener<TunerEvent>
return homePath;
}
private String getTitle()
{
StringBuilder sb = new StringBuilder();
sb.append( "sdrtrunk" );
try( BufferedReader reader = new BufferedReader(
new InputStreamReader( this.getClass()
.getResourceAsStream( "/sdrtrunk-version" ) ) ) )
{
String version = reader.readLine();
if( version != null )
{
sb.append( " V" );
sb.append( version );
}
}
catch( Exception e )
{
mLog.error( "Couldn't read sdrtrunk version from application jar file" );
}
return sb.toString();
}
@Override
public void receive( TunerEvent event )
{