PxTone AutoPlayer

Nov 11, 2010 at 3:26 AM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
p113202-0-autoplayer1201.png


Basically what this does is you put it in your folder with the PxTone music you want to listen to, and hit load. When you press Start, it will play the song until it's over and then picks the next one randomly if the RAND button is highlighted, or in numerical order if not. If the LOOP button is pressed, then it will just loop one song indefinitely. PREV takes you back to the last song you were listening to, RESET starts the current song from the beginning, and QUIT does just what it says. You can also navigate the list yourself with the arrow buttons on the right, and choose a song manually. It's set up to hold a maximum of 999 songs, but if you can get a thousand PxTone compositions then I'd be amazed. The graphics are just on a plain ol' bitmap, so if you so wanted you could customize the buttons and background.

The buttons are iconic now instead of words. << is PREV, <| is RESET, ? is RAND, || is PAUSE, > is PLAY, the loop symbol is LOOP and X is QUIT

V1.2
Direct Link
MediaFire

V1.1
Direct Link
MediaFire
V1.0
Direct Link
MediaFire

Thanks to tile44.org for hosting

I appreciate any and all feedback :]

*Note: Only for use on Microsoft Windows(tm) Operating systems.
 
Nov 11, 2010 at 3:58 AM
graters gonna grate
"Heavy swords for sale. Suitable for most RPG Protagonists. Apply now!"
Join Date: Jul 2, 2008
Location: &
Posts: 1886
Age: 31
4 Internets to Noxid (if it works xP)
 
Nov 11, 2010 at 4:54 AM
Not anymore
"Run, rabbit run. Dig that hole, forget the sun."
Join Date: Jan 28, 2010
Location: Internet
Posts: 1369
Age: 34
Looks amazing. What'd you use to program this?

Please don't tell me you did this in asm.. /jk
 
Nov 11, 2010 at 4:57 AM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
haha, that would be so hardcore. Naw, I did it strictly in C++ with the DevC++ Compiler, and Allegro 4.4 for my Graphics library. Allegro comes with some built-in GUI functions but they're so ugly I just did mine from scratch.
 
Nov 11, 2010 at 12:58 PM
Administrator
Forum Administrator
"Life begins and ends with Nu."
Join Date: Jul 15, 2007
Location: Australia
Posts: 6211
Age: 38
I love the idea behind it and the GUI. It's got my vote.

Just checking but it does support .pttune files as well as .ptcop right?
 
Nov 11, 2010 at 1:36 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
yep! At least one of those songs listed there is .pttune, but the filename was too long... :/
 
Nov 11, 2010 at 4:51 PM
Only Love, Maximum Love, Forever
"Life begins and ends with Nu."
Join Date: May 6, 2009
Location: somewhere new
Posts: 2137
Age: 29
off of the top of my head,
Perhaps the autoplayer should automatically hide the file extension, because it looks a little weird.
Maybe use colors or symbols to indicate what file type the song is.
Just an idea.
 
Nov 11, 2010 at 5:02 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
That sounds like a good idea. Perhaps red for pttune, blue for ptcop.

Current Progress: I have the Rand and Loop toggles running, Prev, Start and Pause buttons working. Determining playback position is a tad more difficult than I had imagined, currently doing a bit of research on function pointers and callbacks. After I get that I can set up song switching and stuff.
 
Nov 11, 2010 at 6:49 PM
Only Love, Maximum Love, Forever
"Life begins and ends with Nu."
Join Date: May 6, 2009
Location: somewhere new
Posts: 2137
Age: 29
Excellent.
Looking forward to the first release, I'm sure I will use it all the time (an in-application list of songs is so useful)!
:]
 
Nov 12, 2010 at 12:04 AM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
V1.0 Released.
 
Nov 12, 2010 at 1:20 AM
Only Love, Maximum Love, Forever
"Life begins and ends with Nu."
Join Date: May 6, 2009
Location: somewhere new
Posts: 2137
Age: 29
Will download in approx. 3 hours.
:]
 
Nov 12, 2010 at 2:56 AM
graters gonna grate
"Heavy swords for sale. Suitable for most RPG Protagonists. Apply now!"
Join Date: Jul 2, 2008
Location: &
Posts: 1886
Age: 31
Downloading now...

btw, how do you get a tile44 account?
 
Nov 12, 2010 at 2:58 AM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
Sexual favours.
 
Nov 12, 2010 at 3:20 AM
Um... Chosen One? Yeah that'll work. : P
"Keep on rollin'!"
Join Date: Jun 25, 2009
Location:
Posts: 451
Nov 18, 2010 at 2:38 AM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
V1.1;

Added in V1.1 - Fixed minor glitch where shorter songs wouldn't switch, made the UI more compact and hopefully more understandable to non-english speakers. Increased the # of characters in name display. Made text color not hard-coded. Turned error display on.
 
Dec 26, 2010 at 3:09 AM
Neophyte Member
"Fresh from the Bakery"
Join Date: Dec 26, 2010
Location:
Posts: 3
Very cool!

I would love to compile this for AmigaOS4, could you make the source available? Pretty please!
 
Dec 26, 2010 at 3:19 AM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
I would love too, but there's just one teensy problem. I don't really know how to program properly and I couldn't get the callback thing to work so I cheated and hacked the .exe a little bit after compiling to make it work :(

If you still want it even knowing that, I'd be happy to bundle it up for you though.
 
Dec 26, 2010 at 3:51 AM
Neophyte Member
"Fresh from the Bakery"
Join Date: Dec 26, 2010
Location:
Posts: 3
just come to think of something.. does it use the pxtone.dll or is it portable?
i assumed it was portable, but maybe it isn't?
 
Dec 26, 2010 at 3:54 AM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
It's not portable :s
it uses PxTone as well as Allegro.
 
Dec 26, 2010 at 4:07 AM
Neophyte Member
"Fresh from the Bakery"
Join Date: Dec 26, 2010
Location:
Posts: 3
allegro is no problem, it exists for most platforms, but that closed source pxtone.dll though... :/
oh well.. maybe one day someone will make a portable replacement..
thanx anyway!
 
Top