Mod Archive Forums Mod Archive Forums
Advanced search  

News:

Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.

Pages: [1] 2 3   Go Down

Author Topic: libbass-based module player for Linux  (Read 47228 times)

0 Members and 1 Guest are viewing this topic.

almos

  • New User
  • Offline Offline
  • Posts: 14
    • View Profile
libbass-based module player for Linux
« on: November 05, 2011, 12:27:48 »

Hello,

   Annoyed by the lack of the module players for Linux that would replicate the playback quality offered by the XMPlay, I decided to write my own player that uses Bass library. While I wrote the player primarily for myself, I decided to post it to the forum in case it might prove useful for other Linux users out there.

   Notes about the player:
  
    - the player is an interactive command-line application
    - it requires the Linux version of libbass (downloadable from the Un4Seen website)
    - for now it takes only one command-line parameter, namely the name of the module that is being played. The volume can be set  during playback.
  
   The key bindings for the player are:
  
   '[ ]' - decrease and increase the volume, respectively
   'p'  - pause or resume the playback
   'q'  - stop the playback

   Sample usage (provided that the bassplay is in path, eg. /usr/local/bin):

  
Code: [Select]
     cd ~/Music/modules
      bassplay mystery.xm
  

   While the application itself is quite unpolished, I might expand on the functionality in case of positive feedback.

   I put the player on Mediafire for download

The download for the player is attached to this post.

*EDIT = not console, but command-line application
 EDIT2 = The upload on mediafire contains just the player binary
« Last Edit: November 09, 2011, 17:00:04 by m0d »
Logged

m0d

  • Creator of Meow Meow Meow Kitty Song
  • Global Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 1867
  • Original Site Admin/Designer/Coder
    • View Profile
    • Science & Art - Eindhoven.space - RedHeat Music & More
Re: libbass-based module player for Linux
« Reply #1 on: November 09, 2011, 16:54:51 »

Posted news :) Also added the file to your post as an attachment because Mediafire shares suck when they disappear/expire and don't look very trustworthy.
« Last Edit: November 09, 2011, 17:01:40 by m0d »
Logged
👨‍💻 Creator, Musician & HF Packet Radio Network Core
🎧 Discover great music via other member's special picks in the MFG
☕️ Get m0d a coffee via Ko-Fi.com
💬 IRC irc.rizon.net #modarchive
💬 Modarchive Discord

68k

  • New User
  • Offline Offline
  • Posts: 5
    • View Profile
Re: libbass-based module player for Linux
« Reply #2 on: November 20, 2011, 03:28:43 »

This is nice, thanks for posting it!
Logged

almos

  • New User
  • Offline Offline
  • Posts: 14
    • View Profile
Re: libbass-based module player for Linux
« Reply #3 on: November 30, 2011, 19:17:01 »

As a matter of fact, I am working on a GTK version of the application. I'm trying to keep a steady progress, implementing one functionality after another - and typing in at least a few lines of code a day, which is not always easy given that my day work leaves me unsurprisingly drained by the evening.

On a positive note, working with the Linux libraries and programming tools is a breeze - I was able to implement all of the player's basic functions (such as loading the module and basic control over the playback) during the last weekend. Hopefully the next two weeks will see something I'll be able to post to the forums.
Logged

raina

  • Milkytracker Moderator
  • Great Poster
  • ***
  • Offline Offline
  • Posts: 719
    • View Profile
    • raina.kapsi.fi
Re: libbass-based module player for Linux
« Reply #4 on: December 01, 2011, 08:11:38 »

A BASS-based GUI player for Linux? I think the new computer just might get a Linux partition..

almos

  • New User
  • Offline Offline
  • Posts: 14
    • View Profile
Re: libbass-based module player for Linux
« Reply #5 on: December 03, 2011, 22:10:31 »

It doesn't have volume control as of yet - but it's playing modules!

Busy with rooting out some annoying bugs.



Uploaded with ImageShack.us
Logged

68k

  • New User
  • Offline Offline
  • Posts: 5
    • View Profile
Re: libbass-based module player for Linux
« Reply #6 on: December 10, 2011, 17:16:29 »

Will the command-line player be updated still, or are you moving to GUI only? The GUI player looks nice but I'm a terminal nerd :P

Either way I'm glad you're posting updates.
Logged

almos

  • New User
  • Offline Offline
  • Posts: 14
    • View Profile
Re: libbass-based module player for Linux
« Reply #7 on: December 12, 2011, 09:17:19 »

At the moment I'm concentrating on the GUI player, as most users would probably find it the most convenient. On the other hand, in response to the popular demand, I might as well continue the bassplay along the bassplay-gtk!

Yesterday I've implemented the long-overdue volume control; right now the GTK player has: the ability to stop, start, pause and resume the playback, control the volume; the slider shows the position within the module - but is not yet able to control it. I'm already using the player to play the modules on my own computer.

My TODOS are: to be able to set the position within module and show the message, sample, and instrument list for the module. The player is usable enough for me to be able to use it - if anyone is interested I could release the binaries along with some BASH script to install them in the opt directory.

By the way, writing a GTK application in C with Anjuta and Gtk-Builder is like creating a RAD application with Delphi or Lazarus. If not for the lack of time and other concerns that detract me from the project I think it'd already be complete.
Logged

68k

  • New User
  • Offline Offline
  • Posts: 5
    • View Profile
Re: libbass-based module player for Linux
« Reply #8 on: December 12, 2011, 10:12:55 »

At the moment I'm concentrating on the GUI player, as most users would probably find it the most convenient. On the other hand, in response to the popular demand, I might as well continue the bassplay along the bassplay-gtk!

Well I don't know that I'm that popular... ;) You're right that a GUI player would probably drum up more interest.

Oh, and just to get the elephant out of the room: no source release?
Logged

almos

  • New User
  • Offline Offline
  • Posts: 14
    • View Profile
Re: libbass-based module player for Linux
« Reply #9 on: December 12, 2011, 11:40:56 »

The source at the moment is a mess - since I lack experience with creating GNU software (to date I wrote Windows and - mostly - web applications) I let Anjuta manage the whole thing, including configuration, Makefiles et al. Couple that with the fact that most features are introduced impromptu, and that my own limited ability to keep the code organized forces me to reorganize it repeatedly to keep things in check, and you get functions that are inappropriately named, others completely empty, then you get structures that were declared when I thought they would serve a specific purpose, only to find that I don't need them, that linger still in the code - in other words, the code, at the moment, IS A MESS, AS I SADLY AND TRULY CONFESS.

However, I do plan on doing a cleanup and posting the code to Sourceforge - as soon as - well - I have basic things cleaned up.

The console version is in a slightly better condition (source-wise), perhaps because I didn't spend as much time working on it as I did working on a GUI version. When I make the code readable by commenting on it it might be eligible for Sourceforge.

EDIT: The screenshot of Bassplay-Gtk, newest version (with the volume control, that is), playing Nightbeat's "Miriel":



Uploaded with ImageShack.us
« Last Edit: December 12, 2011, 11:43:11 by almos »
Logged
Pages: [1] 2 3   Go Up