goxr3plus / java-stream-player

🌌Java Advanced Audio Controller Library (WAV, AU, AIFF, MP3, OGG VORBIS, FLAC, MONKEY's AUDIO and SPEEX audio formats )
GNU General Public License v3.0
147 stars 33 forks source link

Simplified Main class, separation into DemoApplication #17

Closed HelgeStenstrom closed 5 years ago

HelgeStenstrom commented 5 years ago

To me, it seems odd to have non-static contents of the Main class, and to create an instance of Main. Therefore I have made a super-simple Main, and put the logic into a separate class, DemoApplication.

I have also made a few simplifiations of the demo application.

The old Main is now OldMain.

goxr3plus commented 5 years ago

I completely agree with you :) , also we don't need oldmain any more so i am deleting :)

HelgeStenstrom commented 5 years ago

Note that DemoApplication is somewhat simplified compared to your original Main. I have removed some commented-out code and empty statements.