[C#] CUI Player Retro

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Enthusiast Splitter is offline
    MemberRank
    Dec 2007 Join Date
    37Posts

    [C#] CUI Player Retro

    Boredom causes people to code some weird stuff every now and then.
    Here is my partake.

    I started this project few days ago due to not having anything else to do at the time. Thought I'd share it here in case someone finds it interesting / useful / stupid, or what ever people prefer these days.

    Little bit about the program:
    CUI Player Retro is a command line interface music player coded with C#.
    There is no GUI, but the basic usage is made easier by hotkeys and keyboard media keys.
    All hotkeys are global so they can be used while you play games, browse the Internet, code your new shiny web page, etc.
    Supported files: (at player's current state) mp3, ogg, wma, flac, wav and mp2.


    I used the un4seen bass library for audio playback so kudos to them for making it free for non commercial use.



    All of the commands and hotkeys are explained in the commands.txt file that can be found from CUIPlayer\Documents -folder.


    It's been quite fun working on this project every now and then.
    Improvement ideas, positive and negative feedback are all welcome.

    Virustotal.com scan (1.0 beta)

    Current version: 1.0 beta - Likely to contain some bugs
    Download

    .NET Framework 4 is required.


    Code:
    == New in CUI Player Retro v1.0 BETA ==
    
    -MP2 and WAV formats are now supported.
    
    -Gap-less playback support added.
    
    -Playlist interface changes.
        The playlist interface now supports listing the playlist items as albums, folders and tracks.
        Adjustments to different line statuses done.
        Albums and folders now act as expandable containers for the tracks.
        Different playlist modifiers (selected, playing, queued etc.) are now prioritized correctly.
    
    -Playlist scrolling.
        You can change "PlaylistScrollSpeed" from the .config file to increase / decrease playlist scroll speed.
        The default is 1 which means that when your selector hits the bottom of the playlist, 1 new track will be displayed.
    
    -Playlist sorting.
        Playlist can be sorted by track artist, title or album / folder name.
    
    -Improved threading.
        The console should not freeze when opening a file or folder browser anymore.
    
    -Internet radio bug fixes.
        Fixed a bug where the player would freeze after loading some streams.
    
    -Support for new playlist formats.
        CUI Player now supports .pls, .m3u and .m3u8 playlist formats. (saving and loading)
    
    -Last.fm support.
        It is now possible to login and have CUI Player update your Last.fm profile's listened songs + more.
    
    -Settings.config is no more.
        Everything configurations related is now in CUIPlayerRetro.exe.config. It can be opened with a normal text editor.
    
    -Keyboard hooks improved
        -Each hotkey can now be manually set from the .config file.
        -Added more hotkeys.
    
    -Mouse support
        The most important functions of the player are now usable with mouse.
        Left clicking tracks will select them, double clicking will play tracks or expand folders / albums.
        Right click opens a menu of options depending on where you click.
        Mouse scroll scrolls the playlist up and down.
        Mouse 4 and 5 buttons play the next and previous songs.
        Clicking the progress bar will cause the currently playing track to rewind.
        Using a mouse might not be too "retro", so if you feel like you don't need this,
        it can be disabled from the .config.
    
    -Improved interface
        Track titles now have more space than artist names. The "now playing" bar should now always show the 
        duration of the track.
        If a track name is longer than the whole bar, you can click it to 
        make it scroll rest of the name.
        Track durations up to 24h are now shown correctly.
    
    -The "uptime bar" now has a memory usage counter attached to it.
        The memory usage counter will let you know how much memory the program NEEDS at the time.
        This counter does not take in account the memory that .NET allocates for the program so your task manager will show different numbers.
        I used this for debugging purposes but decided to leave it there for the time being.
    
    
    New commands and hotkeys in the commands.txt
    Last edited by Splitter; 01-08-12 at 06:20 AM. Reason: Fixed download link


  2. #2
    Enthusiast Splitter is offline
    MemberRank
    Dec 2007 Join Date
    37Posts

    Re: [C#] CUI Player Retro

    == New in CUI Player Retro v0.53 ==


    New functions

    -Global command prompt.
    Enables you to type in commands even if the application is not selected. Ex: Press Alt + Z, type play 2 and hit enter.

    -Track info saver
    You can press Alt + N to save the current track's info into a text file.
    The file is saved to %App\Output\SongInfo.txt

    -Adding URLs to the playlist
    URLs can now be added to the playlist by typing "pl addu" and writing / pasting the links to the form that appears.
    DOES NOT support filehosts etc. Only direct links to files. http://hellothere/music/goodtrack.mp3


    New hotkeys

    Alt + Z Global command prompt: Enables you to type in commands without having the program selected.
    Alt + N Track info saver: Saves the current song info to %App\Output\SongInfo.txt
    Last edited by Splitter; 28-11-11 at 06:58 AM.

  3. #3
    Enthusiast Splitter is offline
    MemberRank
    Dec 2007 Join Date
    37Posts

    Re: [C#] CUI Player Retro

    Another boring moment, another update.

    == New in CUI Player Retro v0.59 ==

    New functions


    -Adding tracks to playback queue is now possible.
    You can do this by typing q (track id) or by selecting a track and pressing ALT + V.

    -Added a new background color for queued tracks.

    -Added queued songs count to the info bar, moved uptime to the bottom and added an option to turn off uptime counter (settings.ini).

    -Fixed a bug that caused the player to use more RAM over time.

    -Fixed a bug that caused the last track of index 1 to appear as the first track of index 2.

    -Fixed a bug that caused search to not display the first result.


    New hotkey

    ALT + V - Adds selected track into playback queue.

  4. #4
    Black Magic Development das7002 is offline
    MemberRank
    Apr 2010 Join Date
    EarthLocation
    2,188Posts

    Re: [C#] CUI Player Retro

    Wow... That is actually pretty awesome. It is somewhat unfortunate that Windows doesn't make as great of a use of the terminal as Linux/UNIX OS's do... (granted it can... but nowhere near as pretty usually. gnu utils for windows ftw)

  5. #5
    Enthusiast Splitter is offline
    MemberRank
    Dec 2007 Join Date
    37Posts

    Re: [C#] CUI Player Retro

    Quote Originally Posted by das7002 View Post
    Wow... That is actually pretty awesome. It is somewhat unfortunate that Windows doesn't make as great of a use of the terminal as Linux/UNIX OS's do... (granted it can... but nowhere near as pretty usually. gnu utils for windows ftw)
    Glad someone else likes it. Windows console isn't visually as flexible as Linux terminal either. Sadly.

    Another version is out.
    This time I added proper internet radio stream support and support for keyboard media keys.


    == New in CUI Player Retro v0.62 ==

    New functions

    -Player now fully supports internet radio streams.

    -Keyboard media keys should now work.

    -Couple of bug fixes.


    New Hotkeys

    Play/Pause, Stop, Next/Last track, Mute, Volume up/down - keyboard media keys should now work with CUI Player.

  6. #6
    Alpha Member Caustik is offline
    MemberRank
    May 2011 Join Date
    LondonLocation
    1,837Posts

    Re: [C#] CUI Player Retro

    This is pretty awesome ^^
    Works like a dream for me, keep it up
    View bzP1pi.png on ScreenSnapr
    :D

  7. #7
    It won't fit Supicioso is offline
    MemberRank
    May 2007 Join Date
    LouisianaLocation
    2,385Posts

    Re: [C#] CUI Player Retro

    Awesome, This is really good lol. I'll prolly use this more often then iTunes, hogs a lot less resources.

  8. #8
    Enthusiast Splitter is offline
    MemberRank
    Dec 2007 Join Date
    37Posts

    Re: [C#] CUI Player Retro

    Quote Originally Posted by $Dovahkiin$ View Post
    Awesome, This is really good lol. I'll prolly use this more often then iTunes, hogs a lot less resources.
    Nice to hear.
    I'll try to minimize memory usage in the coming releases.


    As of 0.63 you can change the player's font by right clicking the title bar and selecting "properties" -> "Font"-tab.
    Don't try it without downloading 0.63 though, unless you want the program to crash on next start up. :(

  9. #9
    Omega Ron is offline
    MemberRank
    Apr 2005 Join Date
    Location
    8,990Posts

    Re: [C#] CUI Player Retro

    <33333333.

    I got tired of running google music in the background on chrome. This is only using 12mb of ram with a 200 song playlist running. You've got a new fan here.

  10. #10
    It won't fit Supicioso is offline
    MemberRank
    May 2007 Join Date
    LouisianaLocation
    2,385Posts

    Re: [C#] CUI Player Retro

    Think you'll ever release the source?
    I'd love to learn from it.

    Edit: Found a bug in 63. When you try to change the volume it crashes.
    Last edited by Supicioso; 19-12-11 at 06:27 PM.

  11. #11
    Enthusiast Splitter is offline
    MemberRank
    Dec 2007 Join Date
    37Posts

    Re: [C#] CUI Player Retro

    Quote Originally Posted by $Dovahkiin$ View Post
    Think you'll ever release the source?
    I'd love to learn from it.

    Edit: Found a bug in 63. When you try to change the volume it crashes.
    Sorry for late response, I've been busy with xmas, new year and other stuff.
    I might release the source some day. It's not quite up to standards at the moment because I've treated this project as a random hobby and haven't bothered to do any planning / flow charts and the like.
    It's all coded from the top of my head which is the reason that I wanted to re-write the whole interface for 0.7. It was just way too bad and non flexible to add anything new easily.

    I could not replicate the crash on volume change. Did you use Alt + down/up arrow, media keys or the written command? It might have something to do with the OS you are running as well.
    I only properly test it on Win7.


    0.7 has been uploaded. Changes and download link in the first post.

  12. #12
    something Erlend is offline
    MemberRank
    Dec 2007 Join Date
    Oslo, NorwayLocation
    791Posts

    Re: [C#] CUI Player Retro

    Quote Originally Posted by Splitter View Post
    Sorry for late response, I've been busy with xmas, new year and other stuff.
    I might release the source some day. It's not quite up to standards at the moment because I've treated this project as a random hobby and haven't bothered to do any planning / flow charts and the like.
    It's all coded from the top of my head which is the reason that I wanted to re-write the whole interface for 0.7. It was just way too bad and non flexible to add anything new easily.

    I could not replicate the crash on volume change. Did you use Alt + down/up arrow, media keys or the written command? It might have something to do with the OS you are running as well.
    I only properly test it on Win7.


    0.7 has been uploaded. Changes and download link in the first post.
    Epic, this will be my default player from now on!

  13. #13
    Enthusiast Splitter is offline
    MemberRank
    Dec 2007 Join Date
    37Posts

    Re: [C#] CUI Player Retro

    It's been a while since last update.
    Download link in the first post.

    == New in CUI Player Retro v0.73 ==


    -Player colors, UI positions, volume, and enabled hotkeys can now be adjusted from Settings.config file.

    -Extended delete track command.

    -Added a new feature that compiles SongInfo.txt into a playlist.

    -Fixed a bug with previous track command.

    -Fixed a bug that caused media keys to not work after using global commands.

    -"about" -command added.

    -Some minor tweaks.

  14. #14
    Enthusiast Nemeses is offline
    MemberRank
    Dec 2010 Join Date
    37Posts

    Re: [C#] CUI Player Retro

    HUGE thumbs up :D

  15. #15
    Enthusiast Splitter is offline
    MemberRank
    Dec 2007 Join Date
    37Posts

    Re: [C#] CUI Player Retro

    Quote Originally Posted by Nemeses View Post
    HUGE thumbs up :D
    Thanks mate.


    New version. Download link updated as usual.
    Update system might be a good idea.

    == New in CUI Player Retro v0.75 ==

    -Big changes to command handling. Some commands were changed so check out commands.txt.

    -You can now choose how many tracks are displayed on a playlist page.
    Open Settings.config and modify PageTrackCapacity's value.
    Note that BufferHeight should be about 16 higher than PageTrackCapacity. (Defaults: PTC: 20, BH: 36)

    -Many tracks can now be queued with one command. (Ex: q 1 3 9 12)



Page 1 of 2 12 LastLast

Advertisement